import React, { Component } from 'react' import PropTypes from 'prop-types' import copyToClipboard from 'copy-to-clipboard' import { addressSlicer, checksumAddress } from '../../util' const Tooltip = require('../tooltip-v2.js').default class SelectedAccount extends Component { state = { copied: false, } static contextTypes = { t: PropTypes.func, } static propTypes = { selectedAddress: PropTypes.string, selectedIdentity: PropTypes.object, network: PropTypes.string, } render () { const { t } = this.context const { selectedAddress, selectedIdentity, network } = this.props const checksummedAddress = checksumAddress(selectedAddress, network) return (