2025-11-24 01:00:50 +01:00
|
|
|
import { clsx, type ClassValue } from 'clsx';
|
|
|
|
|
import { twMerge } from 'tailwind-merge';
|
2026-03-12 06:44:56 +01:00
|
|
|
export * from './render-math';
|
2025-11-01 16:18:29 +01:00
|
|
|
|
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
2025-11-24 01:00:50 +01:00
|
|
|
return twMerge(clsx(inputs));
|
2025-11-01 16:18:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2025-11-24 01:00:50 +01:00
|
|
|
export type WithoutChild<T> = T extends { child?: any } ? Omit<T, 'child'> : T;
|
2025-11-01 16:18:29 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2025-11-24 01:00:50 +01:00
|
|
|
export type WithoutChildren<T> = T extends { children?: any } ? Omit<T, 'children'> : T;
|
2025-11-01 16:18:29 +01:00
|
|
|
export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>;
|
|
|
|
|
export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & { ref?: U | null };
|
2026-07-31 00:26:59 +01:00
|
|
|
// HMR trigger
|