mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 18:59:31 +00:00
17 lines
447 B
TypeScript
17 lines
447 B
TypeScript
import { FileTypeDefinition } from '../types'
|
|
import ImageViewer from './image-viewer'
|
|
import { CompareImagePane } from './compare-image-pane'
|
|
|
|
export const imageTypeDefinition: FileTypeDefinition = {
|
|
id: 'image',
|
|
name: 'Image',
|
|
match: (file) => !!file.mediaType?.startsWith('image/'),
|
|
viewer: ImageViewer,
|
|
comparePane: CompareImagePane,
|
|
commentsConfig: {
|
|
hasTimestamp: false,
|
|
hasAnnotations: true,
|
|
hasAiBots: true,
|
|
},
|
|
}
|