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

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

export { useGetRSSActivity };
//# sourceMappingURL=use-get-rssactivity.js.map
//# sourceMappingURL=use-get-rssactivity.js.map