tasko/lib/utils.ts

11 lines
278 B
TypeScript
Raw Permalink Normal View History

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