import { createContext, useContext } from "react";
//#region ../core/src/account-api-context.ts
const AccountApiContext = createContext(null);
const AccountApiProvider = AccountApiContext.Provider;
function useAccountApi() {
	const api = useContext(AccountApiContext);
	if (!api) throw new Error("useAccountApi must be used within an AccountApiProvider");
	return api;
}
//#endregion
export { useAccountApi as n, AccountApiProvider as t };

//# sourceMappingURL=account-api-context-BIZ_aibJ.mjs.map