import { FormControl, Grid } from "@mui/material"; import PropTypes from "prop-types"; import Input from "../common/Input"; const SectionForm = ({ values, touched, handleBlur, errors, handleChange, // setFieldValue, handleSubmit, }) => { SectionForm.propTypes = { values: PropTypes.object.isRequired, touched: PropTypes.object.isRequired, errors: PropTypes.object.isRequired, handleBlur: PropTypes.func.isRequired, handleChange: PropTypes.func.isRequired, setFieldValue: PropTypes.func.isRequired, handleSubmit: PropTypes.func.isRequired, }; return (
{errors.buId} ) : null } /> {errors.deptId} ) : null } /> {errors.sectionName} ) : null } /> {errors.sectionHeadName} ) : null } /> {errors.sectionHeadEmail} ) : null } />
); }; export default SectionForm;