import { ConfigService } from "../../configService/index.mjs";
import { useUser } from "../../utilities/auth/useUser.mjs";
import { c } from "react-compiler-runtime";
//#region src/shell/ui/useBuildEnvironment.ts
const useBuildEnvironment = () => {
	const $ = c(1);
	const user = useUser();
	let t0;
	bb0: {
		const env = ConfigService.config.UNITY_ENVIRONMENT;
		if (![
			"development",
			"staging",
			"production",
			"build"
		].includes(env?.toLowerCase()) || env === "production" && !user?.can?.CAN_VIEW_PROD_APP_RIBBON) {
			t0 = void 0;
			break bb0;
		}
		let t1;
		if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
			t1 = env?.toLowerCase();
			$[0] = t1;
		} else t1 = $[0];
		t0 = t1;
	}
	return t0;
};
//#endregion
export { useBuildEnvironment };

//# sourceMappingURL=useBuildEnvironment.mjs.map