mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-05 00:20:51 +00:00
27 lines
786 B
TypeScript
27 lines
786 B
TypeScript
import { Suspense } from "react";
|
|
import {
|
|
CodeContent,
|
|
CodeContentSkeleton,
|
|
} from "@/features/problems/code/components/content";
|
|
import { PanelLayout } from "@/features/problems/layouts/panel-layout";
|
|
import { CodeFooter } from "@/features/problems/code/components/footer";
|
|
import { CodeToolbar } from "@/features/problems/code/components/toolbar/code-toolbar";
|
|
|
|
interface CodePanelProps {
|
|
problemId: string;
|
|
}
|
|
|
|
export const CodePanel = ({ problemId }: CodePanelProps) => {
|
|
return (
|
|
<PanelLayout>
|
|
<div className="h-full flex flex-col">
|
|
<CodeToolbar className="border-b" />
|
|
<Suspense fallback={<CodeContentSkeleton />}>
|
|
<CodeContent problemId={problemId} />
|
|
</Suspense>
|
|
<CodeFooter />
|
|
</div>
|
|
</PanelLayout>
|
|
);
|
|
};
|