mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 09:20:53 +00:00
21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
import { Suspense } from "react";
|
|
import {
|
|
DescriptionContent,
|
|
DescriptionContentSkeleton,
|
|
} from "@/features/problems/description/components/content";
|
|
import { PanelLayout } from "@/features/problems/layouts/panel-layout";
|
|
|
|
interface DescriptionPanelProps {
|
|
problemId: string;
|
|
}
|
|
|
|
export const DescriptionPanel = ({ problemId }: DescriptionPanelProps) => {
|
|
return (
|
|
<PanelLayout>
|
|
<Suspense fallback={<DescriptionContentSkeleton />}>
|
|
<DescriptionContent problemId={problemId} />
|
|
</Suspense>
|
|
</PanelLayout>
|
|
);
|
|
};
|