import { FilePreviewModal } from './FilePreviewModal'; interface PdfPreviewModalProps { opened: boolean; onClose: () => void; url: string; title?: string; } /** * A PDF viewer, kept as its own name because most callers only ever open a * PDF and say so at the call site. * * The rendering lives in {@link FilePreviewModal}, which also handles images, * video and the file types no browser can show. Callers that know the mime * type should use that directly; the ones here pass a URL alone and get the * same iframe they always had, since a link with no `.something` on the end * resolves to the embed view. */ export function PdfPreviewModal({ opened, onClose, url, title = 'Document', }: PdfPreviewModalProps) { return ( ); }