import { PROJECT_ROLES_FRAGMENT } from "./roles.js";
import { useAuthedTenantQuery } from "../lib/auth.js";
const LIST_MEMBERS_QUERY = `
	${PROJECT_ROLES_FRAGMENT}
	query($slug: String!, $memberType: MemberType) {
		project: projectBySlug(slug: $slug) {
			id
			name
			slug
			... ProjectRoles
			members(memberType: $memberType) {
				identity {
					id
					description
					person {
						id
						email
					}
				}
				memberships {
					role
					variables {
						name
						values
					}
				}
			}
		}
	}
`;
const useListMembersQuery = (projectSlug, memberType) => {
  return useAuthedTenantQuery(LIST_MEMBERS_QUERY, {
    slug: projectSlug,
    memberType
  });
};
export {
  useListMembersQuery
};
//# sourceMappingURL=listUsers.js.map
