import React from 'react' import { Row, Col, H1, H3, P, Warning, Anchor } from '../components/Base' import { Button } from '../components/Base' import { BRIDGE_ERROR, renderTxnError } from '../lib/error' const Success = (props) =>

{ 'Your Transaction was Sent' }

{ `We sent your transaction to the chain. It can take some time to execute, especially if the network is busy. If you’d like to keep track of it, click the Etherscan link below.` }

{ 'Transaction Hash' }

{ props.hash }

{'View on Etherscan ↗'}
const Failure = (props) =>

{ 'Error!' }

{ 'There was an error sending your transaction.' }

{ renderTxnError(props.web3, props.message) }
const SentTransaction = (props) => { const { web3, txnCursor, popRoute } = props const { setPointCursor, pointCursor } = props const w3 = web3.matchWith({ Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 }, Just: res => res.value }) const result = txnCursor.matchWith({ Nothing: _ => { throw BRIDGE_ERROR.MISSING_TXN }, Just: res => res.value }) const body = result.matchWith({ Error: message => , Ok: txn => }) const ok = return (
{ body } { ok }
) } export default SentTransaction