import styles from '@/components/UpdateModal/index.module.scss'
import { Modal } from 'antd';
import { useState, useImperativeHandle, forwardRef } from "react";
const UpdateModal = forwardRef((props: any, ref: any) => {
  useImperativeHandle(ref, () => ({
    changeModal: (data: any) => {
      setIsUpdateModal(true)
    }
  }))
  const [isUpdateModal, setIsUpdateModal] = useState(false);
  return (
    <>
      <Modal
        title="更新"
        open={isUpdateModal}
        footer={null}
        onCancel={() => setIsUpdateModal(false)}
        centered
        width={'400px'}
      >
        <div className={styles.isUpdateModal}>

        </div>
      </Modal>
    </>
  )
})

export default UpdateModal