aitasker / frontend /src /lib /utils.ts
minhhungg's picture
feat: upload dataset and simulation files to Hugging Face
675f6bd
Raw
History Blame Contribute Delete
299 Bytes
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';
}