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