import { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "@/src/components/ui/resizable"; import useSessionStorage from "@/src/components/useSessionStorage"; interface AnnotationProcessingLayoutProps { leftPanel: React.ReactNode; rightPanel: React.ReactNode; projectId: string; } export const AnnotationProcessingLayout: React.FC< AnnotationProcessingLayoutProps > = ({ leftPanel, rightPanel, projectId }) => { const [panelSize, setPanelSize] = useSessionStorage( `annotationQueuePanelSize-${projectId}`, 65, ); return ( <> {/* Mobile: Vertical stack without resizing */}
{leftPanel}
{rightPanel}
{/* Desktop: Horizontal resizable panels */}
{ setPanelSize(sizes[0]); }} > {leftPanel} {rightPanel}
); };