"use client";
import { j as t } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { Center as m, Tooltip as n, Avatar as u } from "@mantine/core";
import { useClipboard as d } from "@mantine/hooks";
import a from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.mjs";
import p from "../../../node_modules/.pnpm/ethereum-blockies-base64@1.0.2/node_modules/ethereum-blockies-base64/dist/main.mjs";
import e from "./Identicon.module.scss.mjs";
function h(o) {
  var i;
  const c = p(o.value), s = d(), l = `${o.value.slice(0, 6)}..${o.value.slice(-4)}`, r = /* @__PURE__ */ t.jsx(m, { children: s.copied ? "copied" : l });
  return /* @__PURE__ */ t.jsx(
    n,
    {
      position: "bottom",
      label: r,
      className: a("caption", e.tooltip),
      children: /* @__PURE__ */ t.jsx(
        "button",
        {
          onClick: () => s.copy(o.value),
          className: a(e.button, (i = o.classNames) == null ? void 0 : i.button),
          children: /* @__PURE__ */ t.jsx(
            u,
            {
              src: c,
              classNames: { root: e.root, image: e.image }
            }
          )
        }
      )
    }
  );
}
export {
  h as default
};
//# sourceMappingURL=index.mjs.map
