UserFederationKerberosWizard.js 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import {Wizard} from "../_snowpack/pkg/@patternfly/react-core.js";
  2. import {useTranslation} from "../_snowpack/pkg/react-i18next.js";
  3. import React from "../_snowpack/pkg/react.js";
  4. import {KerberosSettingsRequired} from "./kerberos/KerberosSettingsRequired.js";
  5. import {SettingsCache} from "./shared/SettingsCache.js";
  6. import {useForm} from "../_snowpack/pkg/react-hook-form.js";
  7. export const UserFederationKerberosWizard = () => {
  8. const {t} = useTranslation("user-federation");
  9. const form = useForm({mode: "onChange"});
  10. const steps = [
  11. {
  12. name: t("requiredSettings"),
  13. component: /* @__PURE__ */ React.createElement(KerberosSettingsRequired, {
  14. form,
  15. showSectionHeading: true,
  16. showSectionDescription: true
  17. })
  18. },
  19. {
  20. name: t("cacheSettings"),
  21. component: /* @__PURE__ */ React.createElement(SettingsCache, {
  22. form,
  23. showSectionHeading: true,
  24. showSectionDescription: true
  25. }),
  26. nextButtonText: t("common:finish")
  27. }
  28. ];
  29. return /* @__PURE__ */ React.createElement(Wizard, {
  30. steps
  31. });
  32. };