import { type ReactNode } from "react"; import { RIGHT_PANEL_SHEET_CLASS_NAME } from "../rightPanelLayout"; import { Sheet, SheetPopup } from "./ui/sheet"; export function RightPanelSheet(props: { children: ReactNode; open: boolean; onClose: () => void; }) { return ( { if (!open) { props.onClose(); } }} > {props.children} ); }