import React from 'react'; import { ModalBody, Header, ModalContent, Title, CloseButton } from './styles'; /* ModalContainer is included around all modal components in order to have a consistent wrapper and consistent close-button behavior. Otherwise it will accept any arbitrary content via `props.children` */ const ModalContainer = ({ closeModal, children, title, noHeader, dataCy, }: { closeModal: Function, children?: Object, title: string, dataCy?: string, }): React$Element => { return (
{title} closeModal()} glyph="view-close" />
{children}
); }; export default ModalContainer;