feat: add formatCurrency helper
This commit is contained in:
7
src/lib/helpers/formatCurrency/index.ts
Normal file
7
src/lib/helpers/formatCurrency/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const formatCurrency = (amount: number) => {
|
||||
return new Intl.NumberFormat('pl-PL', {
|
||||
style: 'currency',
|
||||
currency: 'PLN',
|
||||
useGrouping: true
|
||||
}).format(amount);
|
||||
};
|
||||
Reference in New Issue
Block a user