import React from 'react';
import PropTypes from 'prop-types';
import {
Box,
Button
} from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
},
}));
function MDropdown(props) {
const classes = useStyles();
const { field } = props;
return (
{field.label}
handleDropDownChange(e, field.fieldName)}
id={field.fieldName}
input={}
style={{ width: '100%' }}
>
{field.options.map((d, i) => {
var name = d[field.fieldName] != undefined ? d[field.fieldName] : d.name;
return ;
})}
);
}
MDropdown.propTypes = {
history: PropTypes.object,
field: PropTypes.any,
};
export default (MDropdown);