This commit is contained in:
2025-12-27 10:03:53 +07:00
parent 1805ff8674
commit e2063bce4c
18 changed files with 549 additions and 61 deletions

4
src/lib/formatPrice.ts Normal file
View File

@@ -0,0 +1,4 @@
export const formatCurrency = (value: number | string) => {
const num = typeof value === 'string' ? parseInt(value) : value;
return num.toLocaleString('vi-VN');
};