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

21 lines
525 B
TypeScript

import { Suspense } from "react";
import {
SolutionContent,
SolutionContentSkeleton,
} from "@/features/problems/solution/components/content";
import { PanelLayout } from "@/features/problems/layouts/panel-layout";
interface SolutionPanelProps {
problemId: string;
}
export const SolutionPanel = ({ problemId }: SolutionPanelProps) => {
return (
<PanelLayout>
<Suspense fallback={<SolutionContentSkeleton />}>
<SolutionContent problemId={problemId} />
</Suspense>
</PanelLayout>
);
};