import { Typography } from '@material-ui/core/' import { EthAddress } from '@ethersphere/bee-js' import { ReactElement } from 'react' import Identicon from 'react-identicons' import { BLOCKCHAIN_EXPLORER_URL } from '../constants' import ClipboardCopy from './ClipboardCopy' import { Flex } from './Flex' import QRCodeModal from './QRCodeModal' interface Props { address: EthAddress | undefined hideBlockie?: boolean transaction?: boolean truncate?: boolean } export default function EthereumAddress(props: Props): ReactElement { return ( {props.address ? ( {props.hideBlockie ? null : (
)}
{props.address}
) : ( '-' )}
) }