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

//# sourceMappingURL=mysite-api-context-kUTM3GNG.mjs.map