SSR-safe entry point. react-pdf reads DOMMatrix at module scope (react-pdf#1999), so
PdfViewerInner must never be imported during SSR; "use client" and ClientOnly do
not help because a static import is still evaluated on the server. useLazyComponent
imports it from an effect, which never runs there.
SSR-safe entry point. react-pdf reads
DOMMatrixat module scope (react-pdf#1999), soPdfViewerInnermust never be imported during SSR;"use client"andClientOnlydo not help because a static import is still evaluated on the server.useLazyComponentimports it from an effect, which never runs there.