import { Component, For, Show } from "solid-js" import { Icon } from "@opencode-ai/ui/icon" import type { ImageAttachmentPart } from "@/context/prompt" type PromptImageAttachmentsProps = { attachments: ImageAttachmentPart[] onOpen: (attachment: ImageAttachmentPart) => void onRemove: (id: string) => void removeLabel: string } export const PromptImageAttachments: Component = (props) => { return ( 0}>
{(attachment) => (
} > {attachment.filename} props.onOpen(attachment)} />
{attachment.filename}
)}
) }