mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 09:20:53 +00:00
21 lines
525 B
TypeScript
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>
|
|
);
|
|
};
|