From 7c5366db7aaab91b2734e221b4e94b4a8f25affb Mon Sep 17 00:00:00 2001 From: Norbert Maciaszek Date: Mon, 17 Nov 2025 18:41:40 +0100 Subject: [PATCH] feat: add formatCurrency helper --- src/lib/helpers/formatCurrency/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/lib/helpers/formatCurrency/index.ts 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); +};