init
This commit is contained in:
19
src/apps/ai-editor/preview/PdfPreview.tsx
Normal file
19
src/apps/ai-editor/preview/PdfPreview.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
interface PdfPreviewProps {
|
||||
src: string;
|
||||
fileName?: string;
|
||||
}
|
||||
|
||||
export const PdfPreview: React.FC<PdfPreviewProps> = ({ src, fileName }) => {
|
||||
return (
|
||||
<div className='h-full w-full flex flex-col bg-gray-50 dark:bg-gray-900'>
|
||||
<div className='flex-1 w-full'>
|
||||
<embed
|
||||
src={src}
|
||||
type='application/pdf'
|
||||
className='w-full h-full'
|
||||
title={fileName}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user