'use strict';

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

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

exports.useGetOperationProfitSnapshot = useGetOperationProfitSnapshot;
//# sourceMappingURL=use-get-operation-profit-snapshot.cjs.map
//# sourceMappingURL=use-get-operation-profit-snapshot.cjs.map