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

/**
 * shadcn-svelte's canonical class composer: merge tailwind classes,
 * de-duplicate conflicts (last one wins for the same utility group).
 */
export function cn(...inputs: ClassValue[]): string {
	return twMerge(clsx(inputs));
}
