import React from 'react' import styles from './UpdateInput.module.css' import EditButton from '../EditButton/EditButton' const UpdateInput = ({ label, id, value, defaultValue, type, name, onChange, placeholder, maxLength, pattern, minLength, onInvalid, onValid, readOnly }) => { const [editable, setEditable] = React.useState(true) const handleEdit = () => { setEditable(!editable) } return (