import { Spin, Skeleton, Modal as AntModal } from 'antd'; import React, { FC, ReactNode, useState } from 'react'; import styles from './Modal.module.scss'; export type ModalProps = { title: string; url?: string; visible: boolean; handleOk?: () => void; handleCancel?: () => void; afterClose?: () => void; children?: ReactNode; height?: string; width?: string; }; export const Modal: FC = ({ title, url, visible, handleOk, handleCancel, afterClose, height, width, children, }) => { const [loading, setLoading] = useState(!!url); const modalStyle = { padding: '0px', minHeight: height, }; const iframe = url && (