itpdp/web/src/lib/utils.ts
2026-05-01 20:53:24 +02:00

13 lines
272 B
TypeScript

import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function initials(name: string) {
return name
.split(" ")
.map((t) => t[0])
.join("");
}