"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "Blockie", {
    enumerable: true,
    get: function() {
        return Blockie;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _avatar = require("./avatar");
const _ethereumblockiesbase64 = /*#__PURE__*/ _interop_require_default(require("ethereum-blockies-base64"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const Blockie = (props)=>{
    const src = (0, _react.useMemo)(()=>(0, _ethereumblockiesbase64.default)(props.address), [
        props.address
    ]);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_avatar.Avatar, {
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_avatar.AvatarImage, {
            src: src,
            alt: props.address
        })
    });
};

//# sourceMappingURL=blockie.js.map