fix: add cn utility and fix import path in AntiCheatBadge
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { Shield, ShieldCheck, ShieldX, ShieldQuestion } from "lucide-react";
|
import { Shield, ShieldCheck, ShieldX, ShieldQuestion } from "lucide-react";
|
||||||
import { cn } from "~/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
interface AntiCheatBadgeProps {
|
interface AntiCheatBadgeProps {
|
||||||
antiCheatRelevant: boolean;
|
antiCheatRelevant: boolean;
|
||||||
|
|||||||
@@ -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(" ");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user