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

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

export { useGetActivities };
//# sourceMappingURL=use-get-activities.js.map
//# sourceMappingURL=use-get-activities.js.map