Client-side re-export shim that proxies source-icons utilities from the server-safe implementation at `src/utils/source-icons.ts`, allowing chat-side consumers to import from the chat-utils barrel path without duplication. ## Key Components | Export | Description | |--------|-------------| | `SOURCE_ICON_NAMES` | Static map of source names to their icon identifiers | | `getSourceIconName` | Helper to resolve an icon name for a given source | | `SOURCE_LABELS_BY_TABLE` | Map of table IDs to human-readable source labels | | `getSourceLabel` | Helper to resolve a display label for a given table | | `DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID` | Static map of document types to their default table IDs | | `defaultTableIdForDocumentType` | Helper to resolve the default table ID for a document type | ## Usage Example ```typescript // Chat-side consumers import via the chat-utils barrel import { getSourceIconName, getSourceLabel, defaultTableIdForDocumentType, } from '@/chat-utils' // Resolve a source icon for rendering const iconName = getSourceIconName('zendesk') // e.g. "ZendeskIcon" // Get a human-readable label for a table const label = getSourceLabel('tickets') // e.g. "Zendesk Tickets" // Resolve the default table for a document type const tableId = defaultTableIdForDocumentType('article') // e.g. "kb_articles" ``` > **Note:** The actual logic lives in `src/utils/source-icons.ts`, which carries no `'use client'` directive, keeping it safe for server-side hub code. This shim exists purely to preserve the chat-utils barrel import path.