'use strict';

var apiCore = require('@rss3/api-core');
var reactQuery = require('@tanstack/react-query');

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

exports.useGetNetworkAssets = useGetNetworkAssets;
//# sourceMappingURL=use-get-network-assets.cjs.map
//# sourceMappingURL=use-get-network-assets.cjs.map