require("../../../_virtual/_rolldown/runtime.js");
const require_SalesSdkCustomerContext = require("../context/SalesSdkCustomerContext.js");
let react = require("react");
//#region src/plus/salesSdk/hooks/useSalesSdkCustomer.ts
/**
* 客户 Provider 出口：data + actions 扁平合并。
* 必须在 `<SalesSdkProvider>` 内部使用。
*/
function useSalesSdkCustomer() {
	const ctx = (0, react.useContext)(require_SalesSdkCustomerContext.SalesSdkCustomerContext);
	if (!ctx) throw new Error("[SalesSdk] useSalesSdkCustomer 必须在 <SalesSdkProvider> 内部使用");
	return ctx;
}
//#endregion
exports.useSalesSdkCustomer = useSalesSdkCustomer;
