File manager - Edit - /var/www/payraty/helpdesk/common/resources/client/i18n/formatted-currency.tsx
Back
import {Fragment, memo} from 'react'; import {useNumberFormatter} from './use-number-formatter'; interface FormattedCurrencyProps { value: number; currency: string; } export const FormattedCurrency = memo( ({value, currency}: FormattedCurrencyProps) => { const formatter = useNumberFormatter({ style: 'currency', currency, currencyDisplay: 'narrowSymbol', }); if (isNaN(value)) { value = 0; } return <Fragment>{formatter.format(value)}</Fragment>; } );
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.7 |
proxy
|
phpinfo
|
Settings