import {
Button,
Wizard,
WizardContextConsumer,
WizardFooter,
} from "@patternfly/react-core";
import { useTranslation } from "react-i18next";
import React from "react";
import { LdapSettingsGeneral } from "./LdapSettingsGeneral";
import { LdapSettingsConnection } from "./LdapSettingsConnection";
import { LdapSettingsSearching } from "./LdapSettingsSearching";
import { LdapSettingsSynchronization } from "./LdapSettingsSynchronization";
import { LdapSettingsKerberosIntegration } from "./LdapSettingsKerberosIntegration";
import { LdapSettingsCache } from "./LdapSettingsCache";
import { LdapSettingsAdvanced } from "./LdapSettingsAdvanced";
export const UserFederationLdapWizard = () => {
const { t } = useTranslation("user-federation");
const steps = [
{
name: "Required settings",
id: "ldapRequiredSettingsStep",
component: ,
},
{
name: "Connection settings",
id: "ldapConnectionSettingsStep",
component: ,
},
{
name: "Searching settings",
id: "ldapSearchingSettingsStep",
component: ,
},
{
name: "Synchronization settings",
id: "ldapSynchronizationSettingsStep",
component: ,
},
{
name: "KerberosIntegration settings",
id: "ldapKerberosIntegrationSettingsStep",
component: ,
},
{
name: "Cache settings",
id: "ldapCacheSettingsStep",
component: ,
},
{
name: "Advanced settings",
id: "ldapAdvancedSettingsStep",
component: ,
},
];
const title = "Add LDAP user federation provider";
const footer = (
{({
activeStep,
goToStepByName,
goToStepById,
onNext,
onBack,
onClose,
}) => {
// First step buttons
if (activeStep.id == "ldapRequiredSettingsStep") {
return (
<>
>
);
}
// Other required step buttons
else if (
activeStep.id == "ldapConnectionSettingsStep" ||
activeStep.id == "ldapSearchingSettingsStep"
) {
return (
<>
>
);
}
// Last step buttons
else if (activeStep.id == "ldapAdvancedSettingsStep") {
return (
<>
>
);
}
// All the other steps buttons
return (
<>
>
);
}}
);
return (
);
};