import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../icon_button'; import './modal_layout'; const messages = defineMessages({ close: { id: 'lightbox.close', defaultMessage: 'Close' }, }); export default @injectIntl class ModalLayout extends PureComponent { static propTypes = { title: PropTypes.string, children: PropTypes.node, onClose: PropTypes.func.isRequired, }; render() { const { title, children, intl, onClose } = this.props; return (

{title}

{children}
) }; }