tasko/lib/utils.ts

11 lines
278 B
TypeScript
Raw Normal View History

2024-02-15 20:49:19 -05:00
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
2024-02-14 21:30:10 -05:00
export function cn(...inputs: ClassValue[]) {
2024-02-15 20:49:19 -05:00
return twMerge(clsx(inputs));
2024-02-14 21:30:10 -05:00
}
export function absoluteUrl(pathname: string) {
2024-02-15 20:49:19 -05:00
return `${process.env.NEXT_PUBLIC_APP_URL}${pathname}`;
2024-02-14 21:30:10 -05:00
}