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