import React from 'react' import styles from './styles.module.css' export default function Input({inputRef, label: _label, error, hint, type, name, value, onChange, onBlur, isValid = true}){ const label = (_label === undefined) ? name.replace(name[0], name[0].toUpperCase()) : _label return (
{label && } {(hint || error) && {error || (isValid ? '' : hint)}}
) }