import type { ReactNode } from "react"; import { ChevronLeft, ChevronRight } from "lucide-react"; import { Button } from "~/components/ui/button"; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "~/components/ui/accordion"; import { cn } from "~/lib/utils"; interface DraftSidebarProps { collapsed: boolean; onCollapsedChange: (collapsed: boolean) => void; queueSection: ReactNode; participantsSection: ReactNode; className?: string; } export function DraftSidebar({ collapsed, onCollapsedChange, queueSection, participantsSection, className, }: DraftSidebarProps) { if (collapsed) { return ( ); } return ( <> {/* Mobile backdrop */}
onCollapsedChange(true)} aria-label="Close sidebar" />
{/* Queue Section */}

My Queue

{queueSection}
{/* Available Participants Section */}

Available Participants

{participantsSection}
{/* Collapse button at bottom */}
); }