import React from 'react'; import classNames from 'classnames'; import { MIME } from '../../../../../types'; import { GoogleChrome } from '../../../../../util'; import { QuotePropsWithoutListener } from './Quote'; export const QuoteGenericFile = ( props: Pick ) => { const { attachment, isIncoming } = props; if (!attachment) { return null; } const { fileName, contentType } = attachment; const isGenericFile = !GoogleChrome.isVideoTypeSupported(contentType) && !GoogleChrome.isImageTypeSupported(contentType) && !MIME.isAudio(contentType); if (!isGenericFile) { return null; } return (
{fileName}
); };