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