import React from 'react'; import { Modal } from 'antd'; import { CloseOutlined } from '@easyv/react-icons'; import { useRecoilState } from 'recoil'; import Loading from '@/components/Loading'; import { _themeLoading } from '@/pages/module'; export interface AllScreenModalProp { title?: string; children: React.ReactNode; onClose?: () => void; } // eslint-disable-next-line import/no-mutable-exports export let AllScreenModalzIndex = 100; export default function AllScreenModal({ title, children, onClose }: AllScreenModalProp) { const [themeLoading] = useRecoilState(_themeLoading); return (
{title}
{children}
{themeLoading && }
); }