import { FormControl, FormHelperText, InputLabel, MenuItem, Select, } from "@mui/material"; import React from "react"; import { Field } from "../../data/pfa-fields"; export interface SelectInputProps { field: Field; visible: boolean; hidelabel?: boolean; formValues: { [key: string]: string }; handleChange: (id: string, value: string) => void; } export const SelectInput: React.FC = ({ field, formValues, handleChange, hidelabel = false, visible, }) => { return ( <> {visible && ( {!hidelabel && ( {field.label} )} {field.description && ( {field.description} )} )} ); };