mirror of
https://github.com/massbug/judge4c.git
synced 2025-08-23 10:03:33 +00:00
21 lines
701 B
TypeScript
21 lines
701 B
TypeScript
import { Suspense } from "react";
|
|
import { Loading } from "@/components/loading";
|
|
import { WorkspaceEditorHeader } from "@/components/features/playground/workspace/editor/components/header";
|
|
import { WorkspaceEditorFooter } from "@/components/features/playground/workspace/editor/components/footer";
|
|
|
|
interface CodeLayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function CodeLayout({ children }: CodeLayoutProps) {
|
|
return (
|
|
<div className="flex flex-col h-full border border-t-0 border-muted rounded-b-3xl bg-background">
|
|
<WorkspaceEditorHeader />
|
|
<Suspense fallback={<Loading />}>
|
|
{children}
|
|
</Suspense>
|
|
<WorkspaceEditorFooter />
|
|
</div>
|
|
);
|
|
}
|