"use client"; import type { AttachmentRef } from "@/lib/types"; import { cn } from "@/lib/utils"; export function AttachmentsGrid({ attachments, onOpen, }: { attachments: AttachmentRef[]; onOpen: (url: string) => void; }) { if (attachments.length === 0) return null; const images = attachments.filter((a) => /image/i.test(a.contentType ?? "")); if (images.length === 0) return null; return (