2025-06-22 10:02:50 +02:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import { GripVertical } from "lucide-react";
|
|
|
|
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
|
|
|
|
|
|
|
|
import { cn } from "../../lib/utils";
|
|
|
|
|
|
|
|
|
|
const ResizablePanelGroup = ({
|
|
|
|
|
className,
|
|
|
|
|
...props
|
|
|
|
|
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (
|
|
|
|
|
<ResizablePrimitive.PanelGroup
|
|
|
|
|
className={cn(
|
|
|
|
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const ResizablePanel = ResizablePrimitive.Panel;
|
|
|
|
|
|
|
|
|
|
const ResizableHandle = ({
|
|
|
|
|
withHandle,
|
|
|
|
|
className,
|
|
|
|
|
...props
|
|
|
|
|
}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
|
|
|
withHandle?: boolean;
|
|
|
|
|
}) => (
|
|
|
|
|
<ResizablePrimitive.PanelResizeHandle
|
|
|
|
|
className={cn(
|
2025-07-09 21:45:25 +02:00
|
|
|
"hidden",
|
2025-06-22 10:02:50 +02:00
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
{...props}
|
|
|
|
|
>
|
|
|
|
|
</ResizablePrimitive.PanelResizeHandle>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|