text: import React from 'react'
  import styles from '../../styles/Components/Input.module.css'
  
  
  const Input = ({label, type, name, value, onChange, error, onBlur}) => {
      return (
  
          <div className={styles.wrapper}>
              <label className={styles.label} htmlFor={name}>{label}</label>
              <input 
              id={name} 
              name={name} 
              className={styles.input} 
              type={type} 
              onChange={onChange} 
              value={value} 
              onBlur={onBlur}/>
              
              {error && <p className={styles.error}> {error}</p>}
          </div>
  
  
      )
  }
  
  export default Input
  