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

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

export { useGetFederatedActivitiesByAccount };
//# sourceMappingURL=use-get-federated-activities-by-account.js.map
//# sourceMappingURL=use-get-federated-activities-by-account.js.map