import { lazy } from 'react' import { Button } from '../ui/button' import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle, DrawerTrigger, } from '../ui/drawer' const PDFViewer = lazy(() => import('@llamaindex/pdf-viewer').then(m => ({ default: m.PDFViewer })) ) const PdfFocusProvider = lazy(() => import('@llamaindex/pdf-viewer').then(m => ({ default: m.PdfFocusProvider })) ) export interface PdfDialogProps { documentId: string url: string trigger: React.ReactNode } export function PdfDialog(props: PdfDialogProps) { return ( {props.trigger}
PDF Content File URL:{' '} {props.url}
) }