Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 35x 35x 35x 152x 152x 152x 35x | import React, { Fragment, FunctionComponent } from 'react'; import { withCurrency, WithCurrencyProps } from '../locale'; export interface ShopperCurrencyProps { amount: number; } const ShopperCurrency: FunctionComponent<ShopperCurrencyProps & WithCurrencyProps> = ({ amount, currency, }) => ( <Fragment> { currency.toCustomerCurrency(amount) } </Fragment> ); export default withCurrency(ShopperCurrency); |