"use client";
import { j as t } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { ActionIcon as a } from "@mantine/core";
import o from "../List/index.mjs";
import { Member as c } from "../Member/index.mjs";
import n from "./MemberList.module.scss.mjs";
import d from "../../../node_modules/.pnpm/@tabler_icons-react@3.34.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs";
function h(e) {
  const r = (m) => {
    e.onRemove && e.onRemove(m);
  }, i = e.members.map((m, s) => /* @__PURE__ */ t.jsxs("div", { className: n.memberContainer, children: [
    /* @__PURE__ */ t.jsx(c, { supportAddress: e == null ? void 0 : e.supportAddress, ...m }),
    e.editable && e.members.length > 1 && m.member !== (e == null ? void 0 : e.supportAddress) && /* @__PURE__ */ t.jsx(
      a,
      {
        variant: "transparent",
        onClick: () => r(m.member),
        children: /* @__PURE__ */ t.jsx(d, { className: n.trash })
      }
    )
  ] }, s));
  return /* @__PURE__ */ t.jsx(o, { children: i });
}
export {
  h as MemberList
};
//# sourceMappingURL=index.mjs.map
