export type ClassValue = string | number | false | null | undefined | ClassValue[]; export function cn(...inputs: ClassValue[]): string { const out: string[] = []; for (const input of inputs) { if (!input) continue; if (typeof input === 'string' || typeof input === 'number') { out.push(String(input)); } else if (Array.isArray(input)) { const inner = cn(...input); if (inner) out.push(inner); } } return out.join(' '); }