import { FormGroup, Select, SelectOption, SelectVariant, TextInput, } from "@patternfly/react-core"; import { useTranslation } from "react-i18next"; import React, { useState } from "react"; import { HelpItem } from "../../components/help-enabler/HelpItem"; import { UseFormMethods, Controller } from "react-hook-form"; import { FormAccess } from "../../components/form-access/FormAccess"; import { useRealm } from "../../context/realm-context/RealmContext"; import { WizardSectionHeader } from "../../components/wizard-section-header/WizardSectionHeader"; export type LdapSettingsGeneralProps = { form: UseFormMethods; showSectionHeading?: boolean; showSectionDescription?: boolean; }; export const LdapSettingsGeneral = ({ form, showSectionHeading = false, showSectionDescription = false, }: LdapSettingsGeneralProps) => { const { t } = useTranslation("user-federation"); const helpText = useTranslation("user-federation-help").t; const { realm } = useRealm(); const [isVendorDropdownOpen, setIsVendorDropdownOpen] = useState(false); return ( <> {showSectionHeading && ( )} } fieldId="kc-console-display-name" isRequired > {/* These hidden fields are required so data object written back matches data retrieved */} {/* } fieldId="kc-vendor" isRequired > ( )} > ); };