+
+ {
+ React.cloneElement(this.props.children, {
+ close: this.close
+ })
+ }
+
+
+ }
+}
+
+export default () => {
+ const modalRef = React.useRef()
+
+ function openModal(
+ id,
+ render,
+ {
+ className,
+ props,
+ } = {}
+ ) {
+ const win = new DOMWindow({
+ id: id,
+ className: className,
+ })
+
+ win.render(