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