first commit

This commit is contained in:
RayExo
2026-07-12 15:16:07 +05:30
commit 2289301f26
915 changed files with 69400 additions and 0 deletions

12
dashboard/lib/utils.ts Normal file
View File

@@ -0,0 +1,12 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function isAdmin(userId?: string | null) {
if (!userId) return false;
const adminIds = (process.env.NEXT_PUBLIC_ADMIN_IDS || "").split(",");
return adminIds.includes(userId);
}