import Modal from '@material-ui/core/Modal' ; interface Props { open : boolean ; setOpen : ( state : boolean ) => void ; children : JSX . Element ; } export default function SimpleModal ( props ) { const { open , setOpen , children } = props ; const handleClose = ( ) => { setOpen ( false ) ; } ; return ( < div className = "Modal" > < Modal open = { open } onClose = { handleClose } > { children } < /Modal> < /div>); }