export type FileUploadListingGlyphKind = 'document' | 'spreadsheet' | 'image' /** * Glyph kind for attachment rows (entry details table / pills), aligned with IvyForms icons. */ export function fileUploadListingGlyphKind(fileName: string): FileUploadListingGlyphKind { const n = fileName.toLowerCase() if (/\.(jpe?g|png|gif|webp|svg|bmp|ico)$/i.test(n)) return 'image' if (/\.(xlsx?|csv|ods)$/i.test(n)) return 'spreadsheet' return 'document' }