/* eslint-disable */ // @ts-nocheck import { HelpItem } from "../../../shared/keycloak-ui-shared"; import { FormGroup } from "../../../shared/@patternfly/react-core"; import { Controller, useFormContext } from "react-hook-form"; import { useTranslation } from "react-i18next"; import CodeEditor from "../form/CodeEditor"; import type { ComponentProps } from "./components"; export const ScriptComponent = ({ name, label, helpText, defaultValue, required, isDisabled = false, convertToName, }: ComponentProps) => { const { t } = useTranslation(); const { control } = useFormContext(); return ( {helpText}} fieldLabelId={`${label}`} /> } fieldId={name!} isRequired={required} > ( )} /> ); };