import React, {ReactNode} from 'react' import './index.less' interface Props { isShow?: boolean styles?: { backgroundColor: string } children: ReactNode onClose?(): void } const ModalWrapper = (props: Props) => { const clickCloseModal = () => { if (props.onClose) { props.onClose() } } if (!props.isShow) return
return (