import { Modal, Space, Typography } from 'antd'; import useRichI18n from '@/hooks/useRichI18n'; import { $t } from '@/utils/i18n'; import usePopMeta from '../usePopMeta'; const { Text, Link } = Typography; export default (props: { visible: boolean; popType: string; setVisible: (visible: boolean) => void; }) => { const { visible, popType, setVisible } = props; const { popInfo = {} } = usePopMeta(popType); const { richFormat } = useRichI18n(); return ( {$t('pages.config.pop.viewPdf')} {popInfo?.tips?.name} , ]} onCancel={() => setVisible(false)} > {popInfo?.content?.map((item: string, index: number) => ( {index + 1}. {richFormat(item)} ))} ); };