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

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

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