import { Autocomplete, TextField } from "@mui/material"; import { useField } from "formik"; import React from "react"; import { useTranslation } from "react-i18next"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function ExerciseEquipmentSelect(props: { fieldName: string, options: any[] }) { const [t] = useTranslation(); const [field, , helpers] = useField(props.fieldName); return e.id)} getOptionLabel={option => props.options.find(e => e.id === option)!.translatedName} {...field} onChange={(event, newValue) => { helpers.setValue(newValue); }} renderInput={params => ( )} />; }