import React, { Component } from 'react'
import PropTypes from 'prop-types'
import PageContainer from '../../page-container'
import { Tabs, Tab } from '../../tabs'
export default class GasModalPageContainer extends Component {
static contextTypes = {
t: PropTypes.func,
}
static propTypes = {
hideModal: PropTypes.func,
}
state = {}
renderBasicTabContent () {
return (
)
}
renderAdvancedTabContent () {
return (
)
}
renderInfoRow (className, totalLabelKey, fiatTotal, cryptoTotal) {
return (
{`${this.context.t(totalLabelKey)}:`}{fiatTotal}
{`${this.context.t('amountPlusTxFee')}`}{cryptoTotal}
)
}
renderTabContent (mainTabContent) {
return (
{ mainTabContent() }
{ this.renderInfoRow('info-row--fade', 'originalTotal', '$20.02 USD', '0.06685 ETH') }
{ this.renderInfoRow('info-row', 'newTotal', '$20.02 USD', '0.06685 ETH') }
)
}
renderTabs () {
return (
{ this.renderTabContent(this.renderBasicTabContent) }
{ this.renderTabContent(this.renderAdvancedTabContent) }
)
}
render () {
const { hideModal } = this.props
return (
hideModal()}
onClose={() => hideModal()}
/>
)
}
}