type ClassValue = string | number | boolean | undefined | null; type ClassArray = ClassValue[]; type ClassDictionary = Record; type ClassProp = ClassValue | ClassArray | ClassDictionary; export function cn(...inputs: ClassProp[]): string { return inputs.flat().filter(Boolean).join(' '); }