import { FormControl, Grid, TextField } from "@mui/material"; import PropTypes from "prop-types"; import Input from "../common/Input"; import SingleSelect from "../common/SingleSelect" import MultipleSelect from "../common/MultipleSelect"; import { InputLabel, MenuItem, Select } from "@mui/material"; import Autocomplete from "@mui/material/Autocomplete"; import { useState } from "react"; import MultiCheckbox from "./MultiCheckbox"; //import Select from "@mui/material"; const TestDeviceForm = ({ values, touched, handleBlur, errors, handleChange, setFieldValue, handleSubmit, }) => { TestDeviceForm.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, }; //const ohcselect = ["Student", "Employee"]; // const adroute=["ICU","Personal Clinic","Government Hospital"]; const dename=["AED","Blood Pressure Monitors","Nebulizers","Oxygen canisters"]; return (
{errors.testcatagory} ) : null } /> { const syntheticEvent = { target: { name: "devicename", value: newValue, }, }; handleChange(syntheticEvent); }} onBlur={handleBlur} type="text" helperText={ errors.devicename && touched.devicename ? ( {errors.devicename} ) : null } />
); }; export default TestDeviceForm;