import { createElement, Fragment } from "react";
import { Tag } from "@contember/ui";
const IdentityMembership = ({ RoleRenderer: RoleRenderer2, memberships }) => {
  return /* @__PURE__ */ createElement(Fragment, null, memberships.map((membership, i) => {
    const vars = {};
    for (let variable of membership.variables) {
      vars[variable.name] = variable.values;
    }
    return /* @__PURE__ */ createElement(Tag, {
      key: membership.role
    }, /* @__PURE__ */ createElement(RoleRenderer2, {
      variables: vars,
      role: membership.role
    }));
  }));
};
export { IdentityMembership };
//# sourceMappingURL=IdentityMembership.js.map
