import React, {Component} from 'react' import PropTypes from 'prop-types' import UserPreferencedCurrencyDisplay from '../../../../user-preferenced-currency-display' import { PRIMARY, SECONDARY } from '../../../../../constants/common' 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, }; static contextTypes = { t: PropTypes.func, }; render () { const { gasTotal, onClick, gasLoadingError } = this.props return (
{gasTotal ? (
) : gasLoadingError ?
{this.context.t('setGasPrice')}
:
{this.context.t('loading')}
}
) } }