import { t as createTranslationContext } from "./translation-api-context-factory-dNziJNS1.mjs";
import { use } from "react";
//#region ../core/src/shell-translation-api-context.ts
const { Context: Ctx, Provider: Prov, useTranslation } = 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 use(Ctx);
}
//#endregion
export { useShellTranslationOptional as i, ShellTranslationProvider as n, useShellTranslation as r, ShellTranslationContext as t };

//# sourceMappingURL=shell-translation-api-context-CwhOPjtM.mjs.map