diff --git a/packages/shared-ui/package.json b/packages/shared-ui/package.json index db37f1f..5d46dbd 100644 --- a/packages/shared-ui/package.json +++ b/packages/shared-ui/package.json @@ -37,4 +37,4 @@ "react-dom": "18.2.0", "tsup": "^7.2.0" } -} \ No newline at end of file +} diff --git a/packages/shared-ui/uitls/currencyFormatter.ts b/packages/shared-ui/uitls/currencyFormatter.ts new file mode 100644 index 0000000..3b42fc6 --- /dev/null +++ b/packages/shared-ui/uitls/currencyFormatter.ts @@ -0,0 +1 @@ +export const currencyFormatter = Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });