12 lines
361 B
TypeScript
12 lines
361 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
// This check can be removed, it is just for tutorial purposes
|
|
export const hasEnvVars =
|
|
process.env.NEXT_PUBLIC_SUPABASE_URL &&
|
|
process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_OR_ANON_KEY;
|