mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-09-01 15:37:45 +08:00
13 lines
342 B
TypeScript
13 lines
342 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
// @ts-expect-error: owned by ngard
|
|
import { isEqual } from "@ngard/tiny-isequal";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function isDeepEqual(a: unknown, b: unknown): boolean {
|
|
return isEqual(a, b);
|
|
}
|