monaco-editor-lsp-next/src/features/problems/bot/components/panel.tsx

21 lines
485 B
TypeScript
Raw Normal View History

import { Suspense } from "react";
import {
BotContent,
BotContentSkeleton,
} from "@/features/problems/bot/components/content";
import { PanelLayout } from "@/features/problems/layouts/panel-layout";
interface BotPanelProps {
problemId: string;
}
export const BotPanel = ({ problemId }: BotPanelProps) => {
return (
<PanelLayout>
<Suspense fallback={<BotContentSkeleton />}>
<BotContent problemId={problemId} />
</Suspense>
</PanelLayout>
);
};