import React from "react";
import { FileItem } from '../upload/interface';
import Image from '../image';
import { IconBriefStroked, IconClear } from '@douyinfe/semi-icons';
import { strings, cssClasses } from '@douyinfe/semi-foundation/chat/constants';
import cls from 'classnames';
import { Progress } from "../index";
const { PREFIX_ATTACHMENT, } = cssClasses;
const { PIC_SUFFIX_ARRAY, PIC_PREFIX } = strings;
interface AttachmentProps {
className?: string;
attachment?: FileItem[];
onClear?: (item: FileItem) => void;
showClear?: boolean
}
interface FileProps {
url?: string;
name?: string;
size?: string;
type?: string;
}
export const FileAttachment = React.memo((props: FileProps) => {
const { url, name, size, type } = props;
return