// @flow import React from 'react'; import { Modal } from 'modal/modal'; type Props = { address: string, amount: number, closeModal: () => void, sendToAddress: (string, number) => void, }; class ModalConfirmTransaction extends React.PureComponent { onConfirmed() { const { closeModal, sendToAddress, amount, address } = this.props; sendToAddress(address, amount); closeModal(); } render() { const { amount, address, closeModal } = this.props; return ( this.onConfirmed()} onAborted={closeModal} >

{__('Are you sure you want to ')}

{__('send ')} {amount} LBC

{__('Sending: ')}

{amount} LBC

{__('To address: ')}

{address}

{__('Once the transaction is sent, there is no rollback!')}

); } } export default ModalConfirmTransaction;