const ModalContainer = ( setModalIsOpen ) => { const openModal = ( ) => { setModalIsOpen ( true ) ; } ; const closeModal = ( ) => { setModalIsOpen ( false ) ; } ; return [ openModal , closeModal ] ; } ; export default ModalContainer ;