import { Button, FormGroup, InputGroup, 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 { Controller, useForm } from "react-hook-form"; import ComponentRepresentation from "keycloak-admin/lib/defs/componentRepresentation"; import { EyeIcon } from "@patternfly/react-icons"; import { FormAccess } from "../components/form-access/FormAccess"; export const LdapSettingsConnection = () => { const { t } = useTranslation("user-federation"); const helpText = useTranslation("user-federation-help").t; const [ isTruststoreSpiDropdownOpen, setIsTruststoreSpiDropdownOpen, ] = useState(false); const [isBindTypeDropdownOpen, setIsBindTypeDropdownOpen] = useState(false); const { register, control } = useForm(); return ( <> {/* Cache settings */} } fieldId="kc-console-connection-url" isRequired > } fieldId="kc-enable-start-tls" hasNoPaddingTop > ( )} > } fieldId="kc-use-truststore-spi" > ( )} > } fieldId="kc-connection-pooling" hasNoPaddingTop > ( )} > } fieldId="kc-console-connection-timeout" > } fieldId="kc-bind-type" isRequired > ( )} > } fieldId="kc-console-bind-dn" > } fieldId="kc-console-bind-credentials" isRequired > {" "} {/* TODO: whatever this button is supposed to do */} ); };