import { SalesSdkSummaryContext } from "../context/SalesSdkSummaryContext.js";
import { useContext } from "react";
//#region src/plus/salesSdk/hooks/useSalesSdkSummary.ts
/**
* Summary Provider 出口：仅暴露 summary。
* 必须在 `<SalesSdkProvider>` 内部使用。
*/
function useSalesSdkSummary() {
	const ctx = useContext(SalesSdkSummaryContext);
	if (!ctx) throw new Error("[SalesSdk] useSalesSdkSummary 必须在 <SalesSdkProvider> 内部使用");
	return ctx;
}
//#endregion
export { useSalesSdkSummary };
