15 lines
337 B
TypeScript
15 lines
337 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function inr(n: number) {
|
|
return new Intl.NumberFormat("en-IN", {
|
|
style: "currency",
|
|
currency: "INR",
|
|
maximumFractionDigits: 0,
|
|
}).format(n);
|
|
}
|