fix: add cn utility and fix import path in AntiCheatBadge

This commit is contained in:
2026-04-30 19:53:58 +08:00
parent 971173a3a6
commit ec47be0c2b
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
/**
* Simple class name utility that filters out falsy values and joins with spaces.
* This is a lightweight alternative to clsx/tailwind-merge for projects that
* don't need the full complexity of those libraries.
*/
export function cn(...inputs: (string | boolean | undefined | null)[]): string {
return inputs.filter(Boolean).join(" ");
}