import { isValidETHAddress } from 'libs/validators'; import React from 'react'; import makeBlockie from 'ethereum-blockies-base64'; interface Props { address: string; className?: string; size?: string; } export default function Identicon(props: Props) { const size = props.size || '4rem'; const { address, className } = props; // FIXME breaks on failed checksums const identiconDataUrl = isValidETHAddress(address) ? makeBlockie(address) : ''; return ( // Use inline styles for printable wallets