mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 04:31:39 +10:00
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
import { Suspense, lazy } from 'react';
|
|
|
|
import { type PDFViewerProps } from './pdf-viewer';
|
|
|
|
const PDFViewer = lazy(async () => import('./pdf-viewer'));
|
|
|
|
export const PDFViewerSuspense = (props: PDFViewerProps) => {
|
|
return (
|
|
<Suspense fallback={<div>Loading...</div>}>
|
|
<PDFViewer {...props} />
|
|
</Suspense>
|
|
);
|
|
};
|