import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { Controller, useFormContext } from "react-hook-form"; import { FormGroup, Select, SelectOption, SelectVariant, } from "@patternfly/react-core"; import type { ComponentProps } from "./components"; import { HelpItem } from "../help-enabler/HelpItem"; export const ListComponent = ({ name, label, helpText, defaultValue, options, isDisabled = false, }: ComponentProps) => { const { t } = useTranslation("dynamic"); const { control } = useFormContext(); const [open, setOpen] = useState(false); return ( } fieldId={name!} > ( )} /> ); };