import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } /** Format an archetype slug (e.g. "warm_narrative") to title case ("Warm Narrative") */ export function formatArchetypeName(name: string): string { return name .split(/[-_]/) .map((w) => w.charAt(0).toUpperCase() + w.slice(1)) .join(" "); }