import React from "react"; import { useTranslation } from "react-i18next"; import { FormGroup, TextInput, Form, Switch, TextArea, ActionGroup, Button, } from "@patternfly/react-core"; import { Controller, useFormContext } from "react-hook-form"; import { ScrollForm } from "../components/scroll-form/ScrollForm"; import { ClientDescription } from "./ClientDescription"; import { CapabilityConfig } from "./add/CapabilityConfig"; import { MultiLineInput } from "../components/multi-line-input/MultiLineInput"; import { FormAccess } from "../components/form-access/FormAccess"; import { HelpItem } from "../components/help-enabler/HelpItem"; type ClientSettingsProps = { save: () => void; }; export const ClientSettings = ({ save }: ClientSettingsProps) => { const { register, control } = useFormContext(); const { t } = useTranslation("clients"); return ( <>
} > } > ( )} /> ( onChange("" + value)} /> )} />