diff --git a/web/app/components/base/file-uploader/file-list-in-log.tsx b/web/app/components/base/file-uploader/file-list-in-log.tsx new file mode 100644 index 0000000000..9c28fc0eaa --- /dev/null +++ b/web/app/components/base/file-uploader/file-list-in-log.tsx @@ -0,0 +1,86 @@ +import React, { useState } from 'react' +import { RiArrowRightSLine } from '@remixicon/react' +import FileImageRender from './file-image-render' +import FileTypeIcon from './file-type-icon' +import FileItem from './file-uploader-in-attachment/file-item' +import type { FileEntity } from './types' +import { + getFileAppearanceType, +} from './utils' +import Tooltip from '@/app/components/base/tooltip' +import { SupportUploadFileTypes } from '@/app/components/workflow/types' +import cn from '@/utils/classnames' + +type Props = { + fileList: FileEntity[] +} + +const FileListInLog = ({ fileList }: Props) => { + const [expanded, setExpanded] = useState(false) + + if (!fileList.length) + return null + return ( +