blob: 8525468ced428364729712be41391e5cb1ac2505 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import {type ClassValue, clsx} from "clsx"
import {twMerge} from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function assert(condition: any, msg?: string): asserts condition {
if (!condition) {
throw new Error(msg);
}
}
|