File size: 299 Bytes
675f6bd | 1 2 3 4 5 6 7 8 9 10 11 | import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function formatVND(amount: number): string {
return amount.toString().replace(/\B(?=(\d{3})+(?!\d))/g, '.') + ' VND';
}
|