- lib/utils.ts: Add getArchetypeDisplayChar helper (duplicate of src/lib) - globals.css: Style updates - swarm-command-feed.tsx: Component updates - telemetry-grid.tsx: Use getArchetypeDisplayChar - test-watcher.ts: Test utility updates
10 lines
328 B
TypeScript
10 lines
328 B
TypeScript
import { type ClassValue, clsx } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function getArchetypeDisplayChar(archetype: { icon?: string; name: string }): string {
|
|
return archetype.icon || archetype.name.charAt(0) || '?';
|
|
}
|