import Modal from './common/ResizableDraggableModal'; import { Spin } from 'antd'; import { SafetyCertificateOutlined } from '@ant-design/icons'; import type { OverlayWorkbenchTheme } from '../utils/overlayWorkbenchTheme'; import { SECURITY_UPDATE_MODAL_CLASS, getSecurityUpdateShellSurfaceStyle, } from '../utils/securityUpdateVisuals'; import { useI18n } from '../i18n/provider'; interface SecurityUpdateProgressModalProps { open: boolean; stageText: string; detailText?: string; overlayTheme: OverlayWorkbenchTheme; surfaceOpacity?: number; } const SecurityUpdateProgressModal = ({ open, stageText, detailText, overlayTheme, surfaceOpacity = 1, }: SecurityUpdateProgressModalProps) => { const { t } = useI18n(); return (
{stageText}
{detailText ?? t('security_update.progress.default_detail')}
); }; export type { SecurityUpdateProgressModalProps }; export default SecurityUpdateProgressModal;