"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const ui = require("@contember/ui");
const IdentityMembership = ({ RoleRenderer: RoleRenderer2, memberships }) => {
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: memberships.map((membership, i) => {
    const vars = {};
    for (let variable of membership.variables) {
      vars[variable.name] = variable.values;
    }
    return /* @__PURE__ */ jsxRuntime.jsx(ui.Tag, { children: /* @__PURE__ */ jsxRuntime.jsx(RoleRenderer2, { variables: vars, role: membership.role }) }, membership.role);
  }) });
};
exports.IdentityMembership = IdentityMembership;
//# sourceMappingURL=IdentityMembership.cjs.map
