1import { clsx, type ClassValue } from 'clsx';
 2import { twMerge } from 'tailwind-merge';
 3
 4export function cn(...inputs: ClassValue[]) {
 5	return twMerge(clsx(inputs));
 6}
 7
 8// eslint-disable-next-line @typescript-eslint/no-explicit-any
 9export type WithoutChild<T> = T extends { child?: any } ? Omit<T, 'child'> : T;
10// eslint-disable-next-line @typescript-eslint/no-explicit-any
11export type WithoutChildren<T> = T extends { children?: any } ? Omit<T, 'children'> : T;
12export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>;
13export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & { ref?: U | null };