import { createContext as e, useContext as t } from "react";
import { jsx as n } from "react/jsx-runtime";
//#region src/providers/StudioProvider.tsx
var r = e(null), i = ({ children: e, router: t, environment: i }) => /* @__PURE__ */ n(r.Provider, {
	value: {
		router: t,
		environment: i
	},
	children: e
}), a = () => {
	let e = t(r);
	if (!e) throw Error("useStudio must be used within StudioProvider");
	return e;
}, o = () => t(r);
//#endregion
export { i as StudioProvider, a as useStudio, o as useStudioOptional };
