// Todo: (RR7) Not sure if this actually makes it client-only. import { Suspense, lazy } from 'react'; import { Trans } from '@lingui/react/macro'; import { Loader } from 'lucide-react'; import { Await } from 'react-router'; const LoadingComponent = () => (

Loading document...

); export const LazyPDFViewerImport = lazy(async () => import('./pdf-viewer')); export const LazyPDFViewer = (props: React.ComponentProps) => ( }> ); export const LazyPDFViewerNoLoader = (props: React.ComponentProps) => ( );