This commit is contained in:
2026-01-30 17:03:32 +08:00
parent 06a12b5052
commit f9adaeca4d
44 changed files with 10227 additions and 0 deletions

View 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>
);
};