import { FC } from 'react';
import { Modal, ModalProps } from 'antd';

interface selfProps {
  url: string;
  title: string;
}
const IframeModal: FC<ModalProps & selfProps> = ({ open, onCancel, title, url }) => {
  return (
    <Modal open={open} onCancel={onCancel} title={title}>
      <iframe src={url} title={title} style={{ width: '100%', height: '1000px' }} />
    </Modal>
  );
};
export default IframeModal;
