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

/**
 * shadcn-style class-name helper. Merges Tailwind classes intelligently
 * (later classes override earlier ones from the same group), and
 * conditionally applies values via clsx semantics.
 */
export function cn(...inputs: ClassValue[]): string {
  return twMerge(clsx(inputs));
}
