13 lines
272 B
TypeScript
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("");
|
|
}
|