import React from 'react'; import { Link } from 'react-router-dom'; import translate from 'translations'; import { NewTabLink } from 'components/ui'; import { BlockExplorerConfig } from 'types/network'; export interface TransactionSucceededProps { txHash: string; blockExplorer?: BlockExplorerConfig; } const TransactionSucceeded = ({ txHash, blockExplorer }: TransactionSucceededProps) => { let verifyBtn: React.ReactElement | undefined; if (blockExplorer) { verifyBtn = ( Verify Transaction on {blockExplorer.name} ); } return (

{translate('SUCCESS_3')} {txHash}

{verifyBtn} {translate('NAV_CheckTxStatus')}
); }; export default TransactionSucceeded;