function Input({
label,
id,
name,
value,
updateValue,
onBlurHandler,
required,
type = "text",
}) {
const handleChange = (e) => {
e.target.type === "checkbox"
? updateValue(e.target.checked)
: updateValue(e.target.value);
};
return (
<>
{label && (
)}
>
);
}
export default Input;