import React from 'react'; type Props = { open: boolean; onClose?: () => void; title: string; } const Dialog: React.FC = ({open, title, children, onClose = () => undefined}) => { if (!open) { return <>; } return ( <>

{title}

{ev.preventDefault(); onClose();}}>
{children}
); }; export default Dialog;