import React, {Component} from 'react' import PropTypes from 'prop-types' import CurrencyDisplay from '../../../../send/currency-display' export default class GasFeeDisplay extends Component { static propTypes = { conversionRate: PropTypes.number, primaryCurrency: PropTypes.string, convertedCurrency: PropTypes.string, gasLoadingError: PropTypes.bool, gasTotal: PropTypes.string, onClick: PropTypes.func, }; render () { const { conversionRate, gasTotal, onClick, primaryCurrency = 'ETH', convertedCurrency, gasLoadingError, } = this.props return (
{gasTotal ? : gasLoadingError ?
{this.context.t('setGasPrice')}
:
{this.context.t('loading')}
}
) } } GasFeeDisplay.contextTypes = { t: PropTypes.func, }