/* eslint-disable */
// @ts-nocheck
import { useTranslation } from "react-i18next";
import { Controller, useFormContext } from "react-hook-form";
import { FormGroup, Radio } from "../../../../shared/@patternfly/react-core";
import { HelpItem } from "../../../../shared/keycloak-ui-shared";
const LOGIC_TYPES = ["POSITIVE", "NEGATIVE"] as const;
type LogicSelectorProps = {
isDisabled?: boolean;
};
export const LogicSelector = ({ isDisabled }: LogicSelectorProps) => {
const { t } = useTranslation();
const { control } = useFormContext();
return (
}
fieldId="logic"
hasNoPaddingTop
>
(
<>
{LOGIC_TYPES.map((type) => (
field.onChange(type)}
label={t(`logicType.${type.toLowerCase()}`)}
className="pf-v5-u-mb-md"
isDisabled={isDisabled}
/>
))}
>
)}
/>
);
};