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' import { NETWORK_NAMES } from '../lib/network' const Success = (props) => { const esvisible = props.networkType === NETWORK_NAMES.ROPSTEN || props.networkType === NETWORK_NAMES.MAINNET const esdomain = props.networkType === NETWORK_NAMES.ROPSTEN ? "ropsten.etherscan.io" : "etherscan.io" const esmessage = esvisible === true ? "If you’d like to keep track of it, click the Etherscan link below." : '' const esanchor = esvisible === false ?
:{ `We sent your transaction to the chain. It can take some time to execute, especially if the network is busy. ${esmessage}` }
{ props.hash }
{ esanchor }