tenantpilot/lib/utils.ts
2025-11-18 23:24:41 +01:00

15 lines
421 B
TypeScript

import { customAlphabet } from "nanoid";
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const nanoid = customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789");
export function absoluteUrl(path: string) {
return `${
process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000"
}${path}`;
}