diff --git a/components/anti-cheat-badge.tsx b/components/anti-cheat-badge.tsx index bd009e6..5158c85 100644 --- a/components/anti-cheat-badge.tsx +++ b/components/anti-cheat-badge.tsx @@ -1,5 +1,5 @@ import { Shield, ShieldCheck, ShieldX, ShieldQuestion } from "lucide-react"; -import { cn } from "~/lib/utils"; +import { cn } from "@/lib/utils"; interface AntiCheatBadgeProps { antiCheatRelevant: boolean; diff --git a/lib/utils.ts b/lib/utils.ts new file mode 100644 index 0000000..a8c2287 --- /dev/null +++ b/lib/utils.ts @@ -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(" "); +}