import React from 'react'; import { FormControl, InputLabel, FilledInput, MenuItem } from '@material-ui/core'; import { Field } from 'formik'; import { Select } from 'formik-material-ui'; interface IFormSelectOption { value: string | number; label: string; code?: string; } interface IFormSelectProps { label: string; property: string; currentValue: string | number; options: IFormSelectOption[]; className?: string; required?: boolean; disabled?: boolean; } export function FormSelect(props: IFormSelectProps) { return ( {props.label} } fullWidth variant="filled" required={props.required} disabled={props.disabled} > {props.options.map((option) => ( {option.label} ))} ); }