woohoo
This commit is contained in:
6
utils/format.ts
Normal file
6
utils/format.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const formatCurrency = (amount: number): string => {
|
||||
return new Intl.NumberFormat('en-GB', {
|
||||
style: 'currency',
|
||||
currency: 'GBP'
|
||||
}).format(amount);
|
||||
};
|
||||
Reference in New Issue
Block a user