'use strict';

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

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

exports.useGetActivities = useGetActivities;
//# sourceMappingURL=use-get-activities.cjs.map
//# sourceMappingURL=use-get-activities.cjs.map