/**
 * Concatenates class names, filtering out falsy values.
 *
 * @example
 *
 * ```ts
 * cn('base-class', condition && 'conditional-class', className)
 * ```
 */
export function cn(...classes: (string | undefined | null | false)[]): string {
  return classes.filter(Boolean).join(' ')
}
