mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-07 11:37:58 +08:00
11 lines
267 B
TypeScript
11 lines
267 B
TypeScript
import React, { Suspense } from 'react';
|
|
import type { IPreviewerProps } from 'dumi';
|
|
|
|
const Previewer = React.lazy(() => import('./Previewer'));
|
|
|
|
export default (props: IPreviewerProps) => (
|
|
<Suspense fallback={null}>
|
|
<Previewer {...props} />
|
|
</Suspense>
|
|
);
|