2025-02-21 13:06:26 +00:00
|
|
|
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>
|
2025-02-21 13:34:37 +00:00
|
|
|
<ResizableHandle withHandle className="w-0.5 hover:bg-blue-500" />
|
2025-02-21 13:06:26 +00:00
|
|
|
<ResizablePanel defaultSize={50}>
|
|
|
|
{children}
|
|
|
|
</ResizablePanel>
|
|
|
|
</ResizablePanelGroup>
|
|
|
|
);
|
|
|
|
}
|