import { createContext, useContext } from "react";
//#region ../../store/core/src/countries-api-context.ts
const CountriesApiContext = createContext(null);
const CountriesApiProvider = CountriesApiContext.Provider;
function useCountriesApi() {
	const api = useContext(CountriesApiContext);
	if (!api) throw new Error("useCountriesApi must be used within a CountriesApiProvider");
	return api;
}
//#endregion
export { useCountriesApi as n, CountriesApiProvider as t };

//# sourceMappingURL=countries-api-context-DScC_39w.mjs.map