mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 23:42:24 +00:00
28 lines
623 B
TypeScript
28 lines
623 B
TypeScript
import {
|
|
ResizableHandle,
|
|
ResizablePanel,
|
|
ResizablePanelGroup,
|
|
} from "@/components/ui/resizable";
|
|
|
|
interface PlaygroundLayoutProps {
|
|
children: React.ReactNode;
|
|
problemDescription: React.ReactNode;
|
|
}
|
|
|
|
export default function PlaygroundLayout({
|
|
children,
|
|
problemDescription,
|
|
}: PlaygroundLayoutProps) {
|
|
return (
|
|
<ResizablePanelGroup direction="horizontal">
|
|
<ResizablePanel defaultSize={50}>
|
|
{problemDescription}
|
|
</ResizablePanel>
|
|
<ResizableHandle withHandle />
|
|
<ResizablePanel defaultSize={50}>
|
|
{children}
|
|
</ResizablePanel>
|
|
</ResizablePanelGroup>
|
|
);
|
|
}
|