import classNames from 'classnames' import React from 'react' import { renderTypeIcon } from '../../AttachmentCard' import type { BubbleVariant } from '../types' import { buildCompactMetaLabel } from './fileMeta' export interface CompactDocumentRowProps { variant: BubbleVariant /** Filename — drives the title (when no `title` set) and the `EXT` label. */ filename?: string /** Override displayed title. Defaults to `filename`. */ title?: string mimeType?: string fileSize?: number /** * When set, the icon + filename area becomes a ` ) : ( <> {iconTile} {textBlock} ) return (
{body} {trailingAction ?
{trailingAction}
: null}
) } export default CompactDocumentRow