import { useSalesSdkCart } from "../../../plus/salesSdk/hooks/useSalesSdkCart.js";
import { useSalesSdk } from "../../../plus/salesSdk/hooks/useSalesSdk.js";
import { useSalesSdkCustomer } from "../../../plus/salesSdk/hooks/useSalesSdkCustomer.js";
import { useSalesSdkSummary } from "../../../plus/salesSdk/hooks/useSalesSdkSummary.js";
import { useSalesSdkProducts } from "../../../plus/salesSdk/hooks/useSalesSdkProducts.js";
import "../../../plus/salesSdk/index.js";
import { useMemo } from "react";
//#region src/components/bigSale/hooks/useBigSaleDataSource.ts
/**
* 聚合 BigSale 两个主区域共享的 SDK 数据源，保持订单状态单一真源。
*/
function useBigSaleDataSource() {
	const sales = useSalesSdk();
	const products = useSalesSdkProducts();
	const customer = useSalesSdkCustomer();
	const cart = useSalesSdkCart();
	const summary = useSalesSdkSummary();
	return useMemo(() => ({
		sales,
		products,
		customer,
		cart,
		summary
	}), [
		sales,
		products,
		customer,
		cart,
		summary
	]);
}
//#endregion
export { useBigSaleDataSource };
