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

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

export { useGetActivitiesByAccounts };
//# sourceMappingURL=use-get-activities-by-accounts.js.map
//# sourceMappingURL=use-get-activities-by-accounts.js.map