// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Props } from '../types.js'; import makeBlockie from 'ethereum-blockies-base64'; import React, { useMemo } from 'react'; import { styled } from '../styled.js'; interface ImgProps { size: number; } function Identicon ({ address, className = '', size, style = {} }: Props): React.ReactElement { const imgSrc = useMemo( () => makeBlockie(address), [address] ); return ( ); } const StyledImg = styled.img(({ size }) => ` display: block; height: ${size}px; width: ${size}px; `); export const Ethereum = React.memo(Identicon);