import { jsx as _jsx } from "react/jsx-runtime";
import { useMemo } from "react";
import { Avatar, AvatarImage } from "./avatar";
import makeBlockie from "ethereum-blockies-base64";
export const Blockie = (props)=>{
    const src = useMemo(()=>makeBlockie(props.address), [
        props.address
    ]);
    return /*#__PURE__*/ _jsx(Avatar, {
        children: /*#__PURE__*/ _jsx(AvatarImage, {
            src: src,
            alt: props.address
        })
    });
};

//# sourceMappingURL=blockie.js.map