import { useState } from 'react' import PropTypes from 'prop-types' import { FormControl, OutlinedInput } from '@mui/material' export const Input = ({ inputParam, value, onChange, disabled = false }) => { const [myValue, setMyValue] = useState(value ?? '') return ( { setMyValue(e.target.value) onChange(e.target.value) }} /> ) } Input.propTypes = { inputParam: PropTypes.object, value: PropTypes.string, onChange: PropTypes.func, disabled: PropTypes.bool }