import React, { PureComponent } from 'react' import PropTypes from 'prop-types' export default class InfoTab extends PureComponent { state = { version: global.platform.getVersion(), } static propTypes = { tab: PropTypes.string, metamask: PropTypes.object, setCurrentCurrency: PropTypes.func, setRpcTarget: PropTypes.func, displayWarning: PropTypes.func, revealSeedConfirmation: PropTypes.func, warning: PropTypes.string, location: PropTypes.object, history: PropTypes.object, } static contextTypes = { t: PropTypes.func, } renderInfoLinks () { const { t } = this.context return (
{ t('links') }
{ t('privacyMsg') }
{ t('terms') }
{ t('attributions') }

{ t('supportCenter') }
{ t('visitWebSite') }
{ t('emailUs') }
) } renderContent () { const { t } = this.context return (
{ t('metamaskVersion') }
{ this.state.version }
{ t('builtInCalifornia') }
{ this.renderInfoLinks() }
) } render () { return this.renderContent() } }