import React from "react" import { Modal, Button } from "antd" import { Icons } from "components/Icons" import "./index.less" // TODO: Implement translucid mode // TODO: Implement close on click mask (and Should remove the close button) export default class AppModal extends React.Component { constructor(props) { super(props) this.controller = app.ModalController = { open: this.open, close: this.close, modalRef: this.modalRef, } } state = { currentRender: null, renderParams: {} } modalRef = React.createRef() open = (render, params = {}) => { this.setState({ currentRender: render, renderParams: params }) } close = () => { this.setState({ currentRender: null, renderParams: {} }) } handleModalClose = () => { this.close() } renderModal = () => { return
} render() { return } }