import React from 'react' import InputButton from './InputButton' import Modal from './Modal' type ModalLoadingProps = { isOpen: boolean onCancel(...args: unknown[]): unknown title: string message: React.ReactNode }; export default class ModalLoading extends React.Component { underlayOnClick(e: Event) { // This stops click events falling through to underlying modals. e.stopPropagation(); } render() { return underlayProps(e) }} title={this.props.title} onOpenToggle={() => this.props.onCancel()} >

{this.props.message}

this.props.onCancel(e)}> Cancel

} }