/* eslint-disable */
// @ts-nocheck
import {
MenuToggle,
Select,
SelectList,
SelectOption,
} from "../../../shared/@patternfly/react-core";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import type { ExpandableExecution } from "../execution-model";
type FlowRequirementDropdownProps = {
flow: ExpandableExecution;
onChange: (flow: ExpandableExecution) => void;
};
export const FlowRequirementDropdown = ({
flow,
onChange,
}: FlowRequirementDropdownProps) => {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const options = flow.requirementChoices!.map((option, index) => (
{t(`requirements.${option}`)}
));
return (
<>
{flow.requirementChoices && flow.requirementChoices.length > 1 && (
)}
{(!flow.requirementChoices || flow.requirementChoices.length <= 1) && (
<>{t(`requirements.${flow.requirement}`)}>
)}
>
);
};