const Modal = ({ isOpen, onClose, children, title, }: { isOpen: boolean; onClose: () => void; children: React.ReactNode; title: string; }) => { if (!isOpen) return null; return ( <>

{title}

{children}
); }; export default Modal;