'use strict';

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

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

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