mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 20:51:33 +10:00
pdf basic
This commit is contained in:
@ -1,9 +1,19 @@
|
||||
import { ReactElement } from "react";
|
||||
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 <>docs</>;
|
||||
return (
|
||||
<div>
|
||||
<PDFViewer />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
DocumentsDetailPage.getLayout = function getLayout(page: ReactElement) {
|
||||
|
||||
Reference in New Issue
Block a user