mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 06:17:58 +00:00
15 lines
388 B
TypeScript
15 lines
388 B
TypeScript
import { FileTypeDefinition } from '../types'
|
|
import PdfViewer from './pdf-viewer'
|
|
|
|
export const pdfTypeDefinition: FileTypeDefinition = {
|
|
id: 'pdf',
|
|
name: 'PDF',
|
|
match: (file) => file.mediaType === 'application/pdf' || file.name.toLowerCase().endsWith('.pdf'),
|
|
viewer: PdfViewer,
|
|
commentsConfig: {
|
|
hasTimestamp: false,
|
|
hasAnnotations: true,
|
|
hasAiBots: true,
|
|
},
|
|
}
|