;
+
+export function getConfigureStepKey(
+ provider: P,
+ suffix: S,
+): `${(typeof PROVIDER_TRANSLATION_KEY_PREFIX)[P]}.${S}` {
+ return `${PROVIDER_TRANSLATION_KEY_PREFIX[provider]}.${suffix}`;
+}
+
+export function useConfigureStepTranslations() {
+ const { provider } = useConfigureSSO();
+ if (!provider) {
+ throw new Error('useConfigureStepTranslations called without a selected provider.');
+ }
+
+ return {
+ provider,
+ key: (suffix: S) => getConfigureStepKey(provider, suffix),
+ } as const;
+}