import Block from '../../Primitives/Block/Block' import { InputStateV2 } from '../inputV2.types' import ChatInputTagV2 from './ChatInputTagV2' import { ChatInputV2TokensType } from './ChatInputV2.tokens' import { ChatInputV2AttachedFile } from './ChatInputV2.types' import { truncateFileNameForTag } from './utils' type AttachmentDropdownV2Props = { id?: string files: ChatInputV2AttachedFile[] onFileRemove: (fileId: string) => void tokens: ChatInputV2TokensType onFileClick: (file: ChatInputV2AttachedFile) => void } const AttachmentDropdownV2 = ({ id, files, onFileRemove, onFileClick, tokens, }: AttachmentDropdownV2Props) => { return ( {files && files.map((file) => ( onFileRemove(file.id)} onFileClick={() => onFileClick(file)} /> ))} ) } export default AttachmentDropdownV2