Skip to content

Commit

Permalink
feat: init PDF Viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Oct 22, 2024
1 parent 946bba7 commit ca32d9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions packages/frontend/component/src/components/pdf-viewer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { ReactElement } from 'react';

export const PDFViewer = (): ReactElement => {
return (
<>
<div>{'PDF Viewer'}</div>
<div>{'PDF ...'}</div>
</>
);
};
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { PDFViewer } from '@affine/component/pdf-viewer';
import type { ReactElement } from 'react';

export const AttachmentViewer = (): ReactElement => {
export const AttachmentPage = (): ReactElement => {
return (
<>
<div>{'Attachment Viewer'}</div>
<div>{'Attachment Viewer'}</div>
<PDFViewer />
</>
);
};

export const Component = () => {
return <AttachmentViewer />;
return <AttachmentPage />;
};

0 comments on commit ca32d9d

Please sign in to comment.