"use client" import React from 'react' import { Button } from '../ui' import { Download, Eye } from 'lucide-react' import { AdobePdfIcon } from '../icons-v2-generated' import { EmbedViewerFrame } from './embed-viewer-frame' export interface PdfViewerProps { src: string fileName?: string onPreview?: () => void onDownload?: () => void height?: string } export function PdfViewer({ src, fileName, onPreview, onDownload, height }: PdfViewerProps) { const displayName = fileName || 'PDF Document' // Historical shape: no src at all → standalone empty state with NO header. if (!src) { return (

PDF file not available

) } return ( } title={displayName} actions={
} src={src} height={height} /> ) }