import { For, Show, type Component } from "solid-js" import { Expand } from "lucide-solid" import type { Attachment } from "../../types/attachment" import { useI18n } from "../../lib/i18n" interface PromptAttachmentsBarProps { attachments: Attachment[] onRemoveAttachment: (attachmentId: string) => void onExpandTextAttachment: (attachmentId: string) => void } const PromptAttachmentsBar: Component = (props) => { const { t } = useI18n() return (
{(attachment) => { const isText = attachment.source.type === "text" return (
{attachment.display}
) }}
) } export default PromptAttachmentsBar