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 1x 1x 1x 35x | import React, { Fragment, FunctionComponent } from 'react';
import { withCurrency, WithCurrencyProps } from '../locale';
export interface StoreCurrencyProps {
amount: number;
}
const StoreCurrency: FunctionComponent<StoreCurrencyProps & WithCurrencyProps> = ({
amount,
currency,
}) => (
<Fragment>
{ currency.toStoreCurrency(amount) }
</Fragment>
);
export default withCurrency(StoreCurrency);
|