interface ModalProps { open: boolean; title: string; onClose: () => void; children: React.ReactNode; /** Footer slot – typically action buttons */ footer?: React.ReactNode; size?: "sm" | "md" | "lg"; } const MODAL_SIZES = { sm: "max-w-sm", md: "max-w-lg", lg: "max-w-2xl" }; export function Modal({ open, title, onClose, children, footer, size = "md" }: ModalProps) { if (!open) return null; return (
{/* Backdrop */} ); }