import { useMemo } from 'react';
import { useSalesSdk, useSalesSdkBookingContext, useSalesSdkCart, useSalesSdkCustomer, useSalesSdkProducts, useSalesSdkSummary } from "../../../plus/salesSdk";
/**
 * 聚合 BigSale 两个主区域共享的 SDK context，保持订单状态单一真源。
 */
export function useBigSaleContext() {
  var sales = useSalesSdk();
  var products = useSalesSdkProducts();
  var customer = useSalesSdkCustomer();
  var cart = useSalesSdkCart();
  var summary = useSalesSdkSummary();
  var booking = useSalesSdkBookingContext();
  return useMemo(function () {
    return {
      sales: sales,
      products: products,
      customer: customer,
      cart: cart,
      summary: summary,
      booking: booking
    };
  }, [sales, products, customer, cart, summary, booking]);
}