"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useRolesQuery = useRolesQuery;
var _tsSdkReactNative = require("@amityco/ts-sdk-react-native");
var _reactQuery = require("@tanstack/react-query");
function useRolesQuery() {
  const {
    mutate: addRoles
  } = (0, _reactQuery.useMutation)({
    mutationFn: ({
      communityId,
      roles,
      userIds
    }) => _tsSdkReactNative.CommunityRepository.Moderation.addRoles(communityId, roles, userIds)
  });
  const {
    mutate: removeRoles
  } = (0, _reactQuery.useMutation)({
    mutationFn: ({
      communityId,
      roles,
      userIds
    }) => _tsSdkReactNative.CommunityRepository.Moderation.removeRoles(communityId, roles, userIds)
  });
  return {
    addRoles,
    removeRoles
  };
}
//# sourceMappingURL=useRolesQuery.js.map