diff --git a/src/renderer/components/ui/resizable.tsx b/src/renderer/components/ui/resizable.tsx new file mode 100644 index 0000000..dd28d33 --- /dev/null +++ b/src/renderer/components/ui/resizable.tsx @@ -0,0 +1,62 @@ +"use client" + +import * as React from "react" +import { GripVertical } from "lucide-react" +import * as ResizablePrimitive from "react-resizable-panels" + +import { cn } from "@/lib/utils" + +const ResizablePanelGroup = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +ResizablePanelGroup.displayName = ResizablePrimitive.PanelGroup.displayName + +const ResizablePanel = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +ResizablePanel.displayName = ResizablePrimitive.Panel.displayName + +const ResizableHandle = ({ + withHandle, + className, + ...props +}: React.ComponentPropsWithoutRef & { + withHandle?: boolean +}) => ( + div]:rotate-90", + className + )} + {...props} + > + {withHandle && ( +
+ +
+ )} +
+) +ResizableHandle.displayName = "ResizableHandle" + +export { ResizablePanelGroup, ResizablePanel, ResizableHandle } \ No newline at end of file