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

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

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