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

/** Tailwind-aware className combiner. Used by every shadcn ui/*.tsx
 *  component so repeated Tailwind utilities collapse to the last-wins
 *  value instead of fighting each other in the class attribute. */
export function cn(...inputs: ClassValue[]): string {
  return twMerge(clsx(inputs))
}
