import * as React from 'react'; import ReactTooltip = require('react-tooltip'); import {EtherScanIcon} from 'ts/components/ui/etherscan_icon'; import {EtherscanLinkSuffixes} from 'ts/types'; import {utils} from 'ts/utils/utils'; interface EthereumAddressProps { address: string; networkId: number; } export const EthereumAddress = (props: EthereumAddressProps) => { const tooltipId = `${props.address}-ethereum-address`; const truncatedAddress = utils.getAddressBeginAndEnd(props.address); return (
{truncatedAddress}
{props.address}
); };