import React from 'react' import PropTypes from 'prop-types' import Button from '../Button' import Modal from './Modal' class LoadingModal extends React.Component { static propTypes = { isOpen: PropTypes.bool.isRequired, onCancel: PropTypes.func.isRequired, title: PropTypes.string.isRequired, message: PropTypes.node.isRequired, } underlayOnClick(e) { // This stops click events falling through to underlying modals. e.stopPropagation(); } render() { return underlayProps(e) }} closeable={false} title={this.props.title} onOpenToggle={() => this.props.onCancel()} >

{this.props.message}

} } export default LoadingModal