import { clsx, type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';

/**
 * Combine class names: clsx for conditional values + tailwind-merge to
 * resolve Tailwind conflicts (e.g. `px-2 px-4` → `px-4`). This is the
 * `cn()` helper shadcn/ui uses everywhere.
 */
export function cn(...inputs: ClassValue[]): string {
  return twMerge(clsx(inputs));
}
