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