import React, { Suspense } from 'react'; import { Alert, Skeleton } from 'antd'; import { createStyles } from 'antd-style'; import type { IPreviewerProps } from 'dumi'; const { ErrorBoundary } = Alert; const Previewer = React.lazy(() => import('./Previewer')); const useStyle = createStyles(({ css }) => ({ skeletonWrapper: css` width: 100% !important; height: 250px; margin-bottom: 16px; border-radius: 8px; `, })); const PreviewerSuspense: React.FC = (props) => { const { styles } = useStyle(); return ( {' '} } > ); }; export default PreviewerSuspense;