import { useConfigureSSO } from "../ConfigureSSOContext.js";

//#region src/components/ConfigureSSO/steps/configureStepTranslations.ts
const PROVIDER_TRANSLATION_KEY_PREFIX = {
	saml_okta: "configureSSO.configureStep.samlOkta",
	saml_custom: "configureSSO.configureStep.samlCustom"
};
function getConfigureStepKey(provider, suffix) {
	return `${PROVIDER_TRANSLATION_KEY_PREFIX[provider]}.${suffix}`;
}
function useConfigureStepTranslations() {
	const { provider } = useConfigureSSO();
	if (!provider) throw new Error("useConfigureStepTranslations called without a selected provider.");
	return {
		provider,
		key: (suffix) => getConfigureStepKey(provider, suffix)
	};
}

//#endregion
export { useConfigureStepTranslations };
//# sourceMappingURL=configureStepTranslations.js.map