first commit
This commit is contained in:
commit
c9fb67e751
423 files changed
+53287
No files matched your search
@@ -0,0 +1,12 @@
|
||||
export const formatCurrency = (value: number | null | undefined): string => {
|
||||
if (value == null) return "R$ 0,00";
|
||||
return new Intl.NumberFormat("pt-BR", {
|
||||
style: "currency",
|
||||
currency: "BRL",
|
||||
}).format(value);
|
||||
};
|
||||
|
||||
export const formatDate = (date: Date | string | null | undefined): string => {
|
||||
if (!date) return "-";
|
||||
return new Date(date).toLocaleDateString("pt-BR");
|
||||
};
|
||||
Reference in new issue
Block a user