import * as React from 'react' import { Group, Panel, Separator } from 'react-resizable-panels' import type { GroupProps, PanelProps, SeparatorProps } from 'react-resizable-panels' import { cn } from '@/lib/utils' export interface ResizablePanelGroupProps extends Omit { direction?: 'horizontal' | 'vertical' className?: string } const ResizablePanelGroup = React.forwardRef( function ResizablePanelGroup({ direction = 'horizontal', className, ...props }, ref) { return ( ) } ) ResizablePanelGroup.displayName = 'ResizablePanelGroup' export type ResizablePanelProps = PanelProps const ResizablePanel = React.forwardRef( function ResizablePanel({ className, ...props }, ref) { return } ) ResizablePanel.displayName = 'ResizablePanel' export interface ResizableHandleProps extends SeparatorProps { withHandle?: boolean className?: string } const ResizableHandle = React.forwardRef( function ResizableHandle({ withHandle = false, className, ...props }, ref) { return ( div]:h-6 [&[aria-orientation=vertical]>div]:w-1', '[&[aria-orientation=horizontal]>div]:h-1 [&[aria-orientation=horizontal]>div]:w-6', className )} {...props} > {withHandle && (
)} ) } ) ResizableHandle.displayName = 'ResizableHandle' export { ResizablePanelGroup, ResizablePanel, ResizableHandle }