import { getPlatformActivities } from '@rss3/api-core';
import { useQuery } from '@tanstack/react-query';

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

export { useGetPlatformActivities };
//# sourceMappingURL=use-get-platform-activities.js.map
//# sourceMappingURL=use-get-platform-activities.js.map