



import { SearchOutlined } from '@ant-design/icons';
import { Modal } from 'antd';
import useMergedState from 'rc-util/es/hooks/useMergedState';
import React, { Children, useRef, useState } from 'react';
import classNames from 'classnames';
// import styles from './index.less';



const CustomDialog = (props) => {
    const {
        title,
        visible,
        handleOk=()=>{},
        handleCancel=()=>{}
    } = props;

    const [isModalVisible, setIsModalVisible] = useState(true);

    const showModal = () => {
        setIsModalVisible(true);
    };

    return (
        <Modal title={title} visible={visible} onOk={handleOk} onCancel={handleCancel}>
            {props.Children}
        </Modal>
    )
}

export default CustomDialog