feat: initial implementation of modern modular webshop (shop core)
This commit is contained in:
11
shop/lib/utils.ts
Normal file
11
shop/lib/utils.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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_KEY;
|
||||
Reference in New Issue
Block a user