import ( './Modal.css' ) ; const Modal = ( { children } ) => ( < div className = "modal--layer" contentEditable = { false } > < div className = "modal--container" > { children } < /div> < /div>); Modal . Header = ( { title = 'Editar' , closeButtonAction } ) => ( < div className = "modal--header" > { title } { closeButtonAction && ( < button className = "button--close" onClick = { closeButtonAction } title = 'Fechar' / > ) } < /div>); export default Modal ;