Files
shumai/packages/webui/components/viewers/pdf/index.tsx
T

16 lines
398 B
TypeScript

import { FileTypeDefinition } from '../types'
import PdfViewer from './pdf-viewer'
export const pdfTypeDefinition: FileTypeDefinition = {
id: 'pdf',
name: 'PDF',
match: (file) => file.proxyType === 'pdf',
viewer: PdfViewer,
commentsConfig: {
hasTimestamp: true,
hasAnnotations: true,
hasAiBots: true,
formatTimestamp: (second: number) => `P${Math.round(second)}`,
},
}