diff --git a/src/lib/helpers/formatCurrency/index.ts b/src/lib/helpers/formatCurrency/index.ts new file mode 100644 index 0000000..f7cda54 --- /dev/null +++ b/src/lib/helpers/formatCurrency/index.ts @@ -0,0 +1,7 @@ +export const formatCurrency = (amount: number) => { + return new Intl.NumberFormat('pl-PL', { + style: 'currency', + currency: 'PLN', + useGrouping: true + }).format(amount); +};