tasko/lib/utils.ts
2024-02-15 20:49:19 -05:00

10 lines
278 B
TypeScript

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}`;
}