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

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

export { useGetNetworkConfig };
//# sourceMappingURL=use-get-network-config.js.map
//# sourceMappingURL=use-get-network-config.js.map