// @flow import React from 'react'; import { toDataUrl } from 'ethereum-blockies'; import { isValidETHAddress } from 'libs/validators'; type Props = { address: string, size?: string }; export default function Identicon(props: Props) { const size = props.size || '4rem'; // FIXME breaks on failed checksums const identiconDataUrl = isValidETHAddress(props.address.toLowerCase()) ? toDataUrl(props.address.toLowerCase()) : ''; return (