import React from 'react';
import { Modal, Button } from 'antd';
// import Icon from '@/tenants-ui/Icon';
import iconClose from '@/assets/images/page-person-import/close-icon.svg';
import iconImport from '@/assets/images/page-person-import/import-icon.svg';
import styles from './index.less';

export default ({ info, onClose }) => {
  return (
    <div className={styles.c}>
      <Modal
        open
        width={320}
        maskClosable={false}
        closable={false}
        footer={null}
        getContainer={false}
      >
        <div className={styles.header}>
          <img src={iconImport} />
          <img src={iconClose} className={styles.close} onClick={onClose}></img>
        </div>
        <div className={styles.info}>{info.message}</div>
        <div className={styles.f}>
          <Button type="primary" size="large" onClick={onClose}>
            完成
          </Button>
        </div>
      </Modal>
    </div>
  );
};
