import React from "react"; import { useTranslation } from "react-i18next"; import { Controller, useFormContext } from "react-hook-form"; import { FormGroup } from "@patternfly/react-core"; import { CodeEditor, Language } from "@patternfly/react-code-editor"; import { HelpItem } from "../../../components/help-enabler/HelpItem"; export const JavaScript = () => { const { t } = useTranslation("clients"); const { control } = useFormContext(); return ( } fieldId="code" isRequired > ( )} /> ); };