import { CommunityRepository } from '@amityco/ts-sdk-react-native';
import { useMutation } from '@tanstack/react-query';
export function useRolesQuery() {
  const {
    mutate: addRoles
  } = useMutation({
    mutationFn: ({
      communityId,
      roles,
      userIds
    }) => CommunityRepository.Moderation.addRoles(communityId, roles, userIds)
  });
  const {
    mutate: removeRoles
  } = useMutation({
    mutationFn: ({
      communityId,
      roles,
      userIds
    }) => CommunityRepository.Moderation.removeRoles(communityId, roles, userIds)
  });
  return {
    addRoles,
    removeRoles
  };
}
//# sourceMappingURL=useRolesQuery.js.map