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

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

export { useGetFederatedActivity };
//# sourceMappingURL=use-get-federated-activity.js.map
//# sourceMappingURL=use-get-federated-activity.js.map