/* eslint-disable */ // @ts-nocheck import { FormGroup, Switch } from "../../../shared/@patternfly/react-core"; import { Controller, useFormContext } from "react-hook-form"; import { useTranslation } from "react-i18next"; import { HelpItem } from "../../../shared/keycloak-ui-shared"; import type { ComponentProps } from "./components"; export const BooleanComponent = ({ name, label, helpText, isDisabled = false, defaultValue, isNew = true, convertToName, }: ComponentProps) => { const { t } = useTranslation(); const { control } = useFormContext(); return ( } > ( field.onChange("" + value)} data-testid={name} aria-label={t(label!)} /> )} /> ); };