"use client"; import { type ReactNode } from "react"; import { Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle, } from "@kandev/ui/drawer"; type MobilePickerSheetProps = { open: boolean; onOpenChange: (open: boolean) => void; title: string; description?: string; /** Optional trailing element rendered to the right of the title (e.g. a "+" CTA). */ headerAction?: ReactNode; children: ReactNode; }; /** * Bottom-sheet shell for picker patterns (sessions, terminals, repos). Wraps * shadcn Drawer with a consistent header layout — picker components only need * to render their list inside `children`. */ export function MobilePickerSheet({ open, onOpenChange, title, description, headerAction, children, }: MobilePickerSheetProps) { return (
{title} {headerAction}
{description && {description}}
{children}
); }