import React, { Component } from 'react' import PropTypes from 'prop-types' import Button from '../../button' class ConfirmResetAccount extends Component { static propTypes = { hideModal: PropTypes.func.isRequired, resetAccount: PropTypes.func.isRequired, } static contextTypes = { t: PropTypes.func, } handleReset () { this.props.resetAccount() .then(() => this.props.hideModal()) } render () { const { t } = this.context return (