import { Spin, Skeleton, Modal as AntModal } from 'antd'; import React, { ReactNode, useState } from 'react'; import s from './Modal.module.scss'; interface Props { title: string; url?: string; visible: boolean; handleOk?: () => void; handleCancel?: () => void; afterClose?: () => void; children?: ReactNode; } export default function Modal(props: Props) { const { title, url, visible, handleOk, handleCancel, afterClose, children } = props; const [loading, setLoading] = useState(!!url); const modalStyle = { padding: '0px', height: '80vh', }; const iframe = url && (