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

/**
 * Combines class names using clsx and merges Tailwind classes
 * @description Utility function for conditional class names with Tailwind CSS
 * @param inputs - Class values to combine
 * @returns Merged class string
 * @example
 * cn("text-red-500", condition && "bg-blue-500")
 */
export function cn(...inputs: ClassValue[]) {
    return twMerge(clsx(inputs))
}
