import { Button, Form, 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"; 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, handleSubmit, control } = useForm< ComponentRepresentation >(); const onSubmit = (data: ComponentRepresentation) => { console.log(data); }; 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 >
); };