interface ModalProps { isOpen: boolean; onClose: () => void; title: string; children: React.ReactNode; } export default function Modal({ isOpen, onClose, title, children }: ModalProps) { if (!isOpen) return null; return (
{/* Background overlay */}
{/* Modal panel */}

{title}

{children}
); }