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

/**
 * The shadcn `cn`. `twMerge` is v2 here — importing from a v3 path
 * (`tailwind-merge/v3` or the `createTailwindMerge` split entry) resolves at
 * type level and then fails at bundle time, so keep this import bare.
 */
export function cn(...inputs: ClassValue[]): string {
  return twMerge(clsx(inputs));
}
