'use strict';

var apiCore = require('@rss3/api-core');
var reactQuery = require('@tanstack/react-query');

function useGetFederatedActivity(params, options) {
  const queryKey = ["useGetFederatedActivity", params];
  const query = reactQuery.useQuery({
    queryKey,
    queryFn: () => {
      const args = Array.isArray(params) ? params : [params];
      return apiCore.getFederatedActivity(
        ...args
      );
    },
    ...options
  });
  return {
    ...query,
    queryKey
  };
}

exports.useGetFederatedActivity = useGetFederatedActivity;
//# sourceMappingURL=use-get-federated-activity.cjs.map
//# sourceMappingURL=use-get-federated-activity.cjs.map