import React from 'react' import {MdClose} from 'react-icons/md' import AriaModal from 'react-aria-modal' import classnames from 'classnames'; type ModalProps = { "data-wd-key"?: string isOpen: boolean title: string onOpenToggle(value: boolean): unknown underlayClickExits?: boolean underlayProps?: any className?: string }; export default class Modal extends React.Component { static defaultProps = { underlayClickExits: true } // See onClose = () => { if (document.activeElement) { (document.activeElement as HTMLElement).blur(); } setTimeout(() => { this.props.onOpenToggle(false); }, 0); } render() { if(this.props.isOpen) { return

{this.props.title}

{this.props.children}
} else { return false; } } }