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

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

export { useGetNetworkAssets };
//# sourceMappingURL=use-get-network-assets.js.map
//# sourceMappingURL=use-get-network-assets.js.map