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

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

export { useGetNodeOperationProfit };
//# sourceMappingURL=use-get-node-operation-profit.js.map
//# sourceMappingURL=use-get-node-operation-profit.js.map