/* eslint-disable */ // @ts-nocheck import { FormGroup } from "../../../shared/@patternfly/react-core"; import { useFormContext } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { HelpItem, TextControl } from "../../../shared/keycloak-ui-shared"; import { MultiLineInput } from "../../components/multi-line-input/MultiLineInput"; import { convertAttributeNameToForm } from "../../util"; import { FormFields } from "../ClientDetails"; type LoginSettingsProps = { protocol?: string; }; export const LoginSettings = ({ protocol = "openid-connect", }: LoginSettingsProps) => { const { t } = useTranslation(); const { watch } = useFormContext(); const standardFlowEnabled = watch("standardFlowEnabled"); const implicitFlowEnabled = watch("implicitFlowEnabled"); return ( <> {(standardFlowEnabled || implicitFlowEnabled) && ( <> } > } > )} {protocol === "saml" && ( <> )} {protocol !== "saml" && standardFlowEnabled && ( } > )} ); };