import { SNFile } from '@standardnotes/snjs' import { FunctionComponent } from 'preact' import { ImagePreview } from './ImagePreview' type Props = { file: SNFile objectUrl: string } export const PreviewComponent: FunctionComponent = ({ file, objectUrl }) => { if (file.mimeType.startsWith('image/')) { return } if (file.mimeType.startsWith('video/')) { return