mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-14 05:15:19 +00:00
26 lines
793 B
TypeScript
26 lines
793 B
TypeScript
|
|
import { ResizablePanelGroup } from "@/components/ui/resizable";
|
||
|
|
import { BottomPanel } from "./components/bottomPanel";
|
||
|
|
import { AnimatedResizableHandle } from "@/components/ui/animatedResizableHandle";
|
||
|
|
import { BrowseStateProvider } from "./browseStateProvider";
|
||
|
|
|
||
|
|
interface LayoutProps {
|
||
|
|
children: React.ReactNode;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function Layout({
|
||
|
|
children,
|
||
|
|
}: LayoutProps) {
|
||
|
|
return (
|
||
|
|
<BrowseStateProvider>
|
||
|
|
<div className="flex flex-col h-screen">
|
||
|
|
<ResizablePanelGroup
|
||
|
|
direction="vertical"
|
||
|
|
>
|
||
|
|
{children}
|
||
|
|
<AnimatedResizableHandle />
|
||
|
|
<BottomPanel />
|
||
|
|
</ResizablePanelGroup>
|
||
|
|
</div>
|
||
|
|
</BrowseStateProvider>
|
||
|
|
);
|
||
|
|
}
|