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

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

export { useGetNetworkActivities };
//# sourceMappingURL=use-get-network-activities.js.map
//# sourceMappingURL=use-get-network-activities.js.map