require("./chunk-9hOWP6kD.cjs");
let react = require("react");
//#region ../core/src/account-api-context.ts
const AccountApiContext = (0, react.createContext)(null);
const AccountApiProvider = AccountApiContext.Provider;
function useAccountApi() {
	const api = (0, react.useContext)(AccountApiContext);
	if (!api) throw new Error("useAccountApi must be used within an AccountApiProvider");
	return api;
}
//#endregion
Object.defineProperty(exports, "AccountApiProvider", {
	enumerable: true,
	get: function() {
		return AccountApiProvider;
	}
});
Object.defineProperty(exports, "useAccountApi", {
	enumerable: true,
	get: function() {
		return useAccountApi;
	}
});

//# sourceMappingURL=account-api-context-DZP9IiGg.cjs.map