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

//# sourceMappingURL=countries-api-context-G-NW4BoH.cjs.map