Spaces:
Paused
Paused
File size: 423 Bytes
9dbb64a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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(" ");
}
|