1type MyModalProps = OpenableProps<xxx> & {
2 /** your props **/
3};
4
5const MyModal = ({ visible, onClose, afterClose, ...props }: MyModalProps) => {
6 // your code here
7 return (
8 <Modal
9 visible={visible}
10 onOk={onClose}
11 onCancel={onClose}
12 afterClose={afterClose}
13 // your other props
14 >
15 {/** your content here **/}
16 </Modal>
17 );
18};