import { Outlet } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { X } from "lucide-react"; import { Drawer, DrawerClose, DrawerContent } from "@/components/ui/drawer"; /** * Narrow-viewport object detail: the nested inside a Base UI Drawer that * slides from the right. Lazy-loaded so Base UI's drawer code (swipe/snap machinery) * splits out of the main entry chunk — the wide pane path never pays for it. */ export function ObjectDetailDrawer({ open, onClose, }: { open: boolean; onClose: () => void; }) { const { t } = useTranslation(); return ( { if (!next) onClose(); }} swipeDirection="right" >
); }