require("./chunk-9hOWP6kD.cjs");
const require_translation_api_context_factory = require("./translation-api-context-factory-mbsJk2UU.cjs");
let react = require("react");
//#region ../core/src/shell-translation-api-context.ts
const { Context: Ctx, Provider: Prov, useTranslation } = require_translation_api_context_factory.createTranslationContext("Shell");
const ShellTranslationContext = Ctx;
const ShellTranslationProvider = Prov;
const useShellTranslation = useTranslation;
/**
* Access the shell translation API without throwing.
* Returns null when no ShellTranslationProvider ancestor exists.
* Use in contexts where the full provider stack may not be wired
* (e.g., data-source transformers called from hooks).
*/
function useShellTranslationOptional() {
	return (0, react.use)(Ctx);
}
//#endregion
Object.defineProperty(exports, "ShellTranslationContext", {
	enumerable: true,
	get: function() {
		return ShellTranslationContext;
	}
});
Object.defineProperty(exports, "ShellTranslationProvider", {
	enumerable: true,
	get: function() {
		return ShellTranslationProvider;
	}
});
Object.defineProperty(exports, "useShellTranslation", {
	enumerable: true,
	get: function() {
		return useShellTranslation;
	}
});
Object.defineProperty(exports, "useShellTranslationOptional", {
	enumerable: true,
	get: function() {
		return useShellTranslationOptional;
	}
});

//# sourceMappingURL=shell-translation-api-context-BxZ1W6Eb.cjs.map