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

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

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