import React, { Component } from 'react' import PropTypes from 'prop-types' import Button from '../../button' import { addressSummary } from '../../../util' class ConfirmRemoveAccount extends Component { static propTypes = { hideModal: PropTypes.func.isRequired, removeAccount: PropTypes.func.isRequired, address: PropTypes.string.isRequired, } static contextTypes = { t: PropTypes.func, } handleRemove () { this.props.removeAccount(this.props.address) .then(() => this.props.hideModal()) } render () { const { t } = this.context return (