import { ReactNode } from 'react' interface MDropdownPanelProps { open: boolean onClose: () => void /** Positioning classes (e.g. `top-[100px] right-4`); panel is fixed. */ className?: string children: ReactNode } /** * Floating popover panel (user menu, filter dropdowns): heavy glass, r20, * closed by a transparent full-screen backdrop — no dim, unlike sheets. * Layered above the scrolling content but below the bottom nav (z-40) and * sheets (z-60), matching the design's stacking order. */ export default function MDropdownPanel({ open, onClose, className = '', children }: MDropdownPanelProps) { if (!open) return null return ( <> {/* Invisible dismiss layer — decoration to a reader, which is why it carries no role of its own; the panel's own controls are the keyboard path. */}