import React, { PropTypes } from 'react'
import InputWrapper from './InputWrapper'

const Input = ({ type, name, value, min, onChange }) => (
  <span>
    <label>{name}</label>
    <input type={type} defaultValue={value} onChange={onChange} min={min || null} />
  </span>
)

Input.propTypes = {
  type: PropTypes.string,
  name: PropTypes.string,
  min: PropTypes.string,
  onChange: PropTypes.func
}

export default InputWrapper(Input)

@@ -192,16 +192,28 @@
 e=%7Btype%7D
+ name=%7Bname%7D
  default

add name to input