import { Form, FormGroup, Select, SelectOption, SelectVariant, Switch, TextInput, } from "@patternfly/react-core"; import { useTranslation } from "react-i18next"; import React, { useState } from "react"; import { HelpItem } from "../components/help-enabler/HelpItem"; import { useForm, Controller } from "react-hook-form"; import ComponentRepresentation from "keycloak-admin/lib/defs/componentRepresentation"; export const LdapSettingsSearching = () => { const { t } = useTranslation("user-federation"); const helpText = useTranslation("user-federation-help").t; const [isEditModeDropdownOpen, setIsEditModeDropdownOpen] = useState(false); const [ isUserLdapFilterModeDropdownOpen, setIsUserLdapFilterModeDropdownOpen, ] = useState(false); const [isSearchScopeDropdownOpen, setIsSearchScopeDropdownOpen] = useState( false ); const { register, handleSubmit, control } = useForm< ComponentRepresentation >(); const onSubmit = (data: ComponentRepresentation) => { console.log(data); }; return ( <> {/* Cache settings */}
} fieldId="kc-edit-mode" > ( )} > } fieldId="kc-console-users-dn" isRequired > } fieldId="kc-username-ldap-attribute" isRequired > } fieldId="kc-rdn-ldap-attribute" isRequired > } fieldId="kc-uuid-ldap-attribute" isRequired > } fieldId="kc-user-object-classes" isRequired > } fieldId="kc-user-ldap-filter" > ( )} > } fieldId="kc-search-scope" > ( )} > } fieldId="kc-read-timeout" > } fieldId="kc-console-pagination" hasNoPaddingTop > ( )} >
); };