mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
20 lines
417 B
TypeScript
20 lines
417 B
TypeScript
import { ClientOnly } from '../../components/client-only';
|
|
|
|
import { Trans } from '@lingui/react/macro';
|
|
|
|
import { PDFViewer, type PDFViewerProps } from './base.client';
|
|
|
|
export const PDFViewerLazy = (props: PDFViewerProps) => {
|
|
return (
|
|
<ClientOnly
|
|
fallback={
|
|
<div>
|
|
<Trans>Loading...</Trans>
|
|
</div>
|
|
}
|
|
>
|
|
{() => <PDFViewer {...props} />}
|
|
</ClientOnly>
|
|
);
|
|
};
|