import React, { Suspense, lazy } from 'react'; import { type PDFDocumentProxy } from 'pdfjs-dist'; export type LoadedPDFDocument = PDFDocumentProxy; export type PDFViewerProps = { className?: string; onDocumentLoad?: () => void; [key: string]: unknown; } & Omit, 'onPageClick'>; const EnvelopePdfViewer = lazy(async () => import('./pdf-viewer-konva')); export const PDFViewerKonvaLazy = (props: PDFViewerProps) => { return ( Loading client component...}> ); }; export default PDFViewerKonvaLazy;