mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
24 lines
585 B
TypeScript
24 lines
585 B
TypeScript
import { ReactElement, useEffect } from "react";
|
|
import Layout from "../../components/layout";
|
|
import { NextPageWithLayout } from "../_app";
|
|
import { Document, Page, pdfjs } from "react-pdf";
|
|
import dynamic from "next/dynamic";
|
|
|
|
const PDFViewer = dynamic(() => import("../../components/pdf-viewer"), {
|
|
ssr: false,
|
|
});
|
|
|
|
const DocumentsDetailPage: NextPageWithLayout = () => {
|
|
return (
|
|
<div>
|
|
<PDFViewer />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
DocumentsDetailPage.getLayout = function getLayout(page: ReactElement) {
|
|
return <Layout>{page}</Layout>;
|
|
};
|
|
|
|
export default DocumentsDetailPage;
|