// Copyright 2017-2018 @polkadot/app-accounts authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { I18nProps } from '@polkadot/ui-app/types'; import React from 'react'; import { AddressSummary, Button, Modal } from '@polkadot/ui-app/index'; import translate from './translate'; type Props = I18nProps & { address: string, onClose: () => void, doForget: () => void }; class Forgetting extends React.PureComponent { render () { return ( {this.renderContent()} {this.renderButtons()} ); } renderButtons () { const { onClose, doForget, t } = this.props; return (