tasko/lib/utils.ts

11 lines
274 B
TypeScript
Raw Normal View History

2024-02-15 02:30:10 +00:00
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function absoluteUrl(pathname: string) {
return `${process.env.NEXT_PUBLIC_APP_URL}${pathname}`
}