import React, { FC } from "react"; import makeBlockie from "ethereum-blockies-base64"; export type Props = { address: string; height?: string; paddingLeft?: string; }; const EthAddressAvatar: FC = ({ address, height = "30px", paddingLeft = "10px" }) => ( identicon window.open(`https://etherscan.io/address/${address}`)} style={{ paddingLeft: paddingLeft, cursor: "pointer" }} tabIndex={-1} height={height} /> ); export default EthAddressAvatar;