import { Show } from "solid-js"; import type { JSX } from "solid-js"; import IconButton from "./IconButton"; import XCircle from "~/components/icons/XCircle"; export interface AttachmentThumbnailProps { /** The URL of the file (either S3 URL or data URL) */ fileUrl: string; /** Whether the file is a video */ isVideo: boolean; /** Callback when the copy button is clicked */ onCopy: () => void; /** Callback when the remove button is clicked */ onRemove: () => void; /** Alt text for the image */ alt?: string; /** Additional CSS classes */ class?: string; } export default function AttachmentThumbnail(props: AttachmentThumbnailProps) { return (