import { getFileIcon } from './files' import { resolveFilePreviewExt } from './filePreview' /** Shared trusted SVG for Vue file rows and inline Markdown artifact cards. */ export function renderArtifactFileIcon(fileName: string): string { const kind = getFileIcon(fileName) const ext = resolveFilePreviewExt(fileName) // Only this restricted extension label is interpolated, never the filename. const label = /^[a-z0-9]{1,4}$/i.test(ext) ? ext.toUpperCase() : 'FILE' return `` }