'use strict';

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

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

exports.useGetNodeOperationProfit = useGetNodeOperationProfit;
//# sourceMappingURL=use-get-node-operation-profit.cjs.map
//# sourceMappingURL=use-get-node-operation-profit.cjs.map