dev: added tailwind merge helper function (#2844)

This commit is contained in:
Aaryan Khandelwal 2023-11-23 17:21:47 +05:30 committed by sriram veeraghanta
parent fc523c6485
commit bf525aa2c4
5 changed files with 31 additions and 5 deletions

View file

@ -1 +1,6 @@
export const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL ? process.env.NEXT_PUBLIC_API_BASE_URL : "";
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL ?? "";
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));