import { FC } from "react"; import { TextField, Autocomplete as AutocompleteInternal } from "@mui/material"; import { colors } from "../styles/theme"; type AutocompleteProps = { name: string; label: string; options: any[]; formState: Record; updateFormState: (name: string, value: any) => void; disabled?: boolean; required?: boolean; }; export const Autocomplete: FC = ({ name, label, options, formState, updateFormState, disabled = false, required = false, }) => ( updateFormState?.(name, e.target.id)} fullWidth size="small" renderInput={(params) => ( )} /> );