import type { TFile } from 'librechat-data-provider'; import type { ExtendedFile } from '~/common'; import FileIcon from '~/components/svg/Files/FileIcon'; import { Spinner } from '~/components'; import SourceIcon from './SourceIcon'; import { cn } from '~/utils'; const FilePreview = ({ file, fileType, className = '', }: { file?: Partial; fileType: { paths: React.FC; fill: string; title: string; }; className?: string; }) => { return (
{typeof file?.['progress'] === 'number' && file?.['progress'] < 1 && ( )}
); }; export default FilePreview;