import { useState } from 'react' import { ImageLightbox } from '@/components/chat/zoomable-image' import { useImageDownload } from '@/hooks/use-image-download' import { useI18n } from '@/i18n' import { X } from '@/lib/icons' interface ReferenceChipProps { name: string onRemove: () => void src: string } // The reference photo as an attachment chip: filename + thumbnail that opens // the shared image viewer (lightbox), with a remove affordance. export function ReferenceChip({ name, onRemove, src }: ReferenceChipProps) { const { t } = useI18n() const { download, saving } = useImageDownload(src) const [viewing, setViewing] = useState(false) return (