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