All files / apps/developer-portal/layers/wiki/app/utils format.ts

100% Statements 3/3
100% Branches 2/2
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 124x                   33x  
const KIND_ICONS: Record<string, string> = {
    readme: "i-lucide-file-text",
    agent: "i-lucide-bot",
    changelog: "i-lucide-tag",
    skill: "i-lucide-wand-sparkles",
    doc: "i-lucide-book-open",
    decision: "i-lucide-compass",
    audit: "i-lucide-scan-search",
};
 
export const kindIcon = (kind: string): string => KIND_ICONS[kind] ?? "i-lucide-file-text";