export default ({type, name, placeholder, value = '', error, onInput, required, className, children, icon}) => (
onInput(e, name) } required={ required } className={[ (value ? "gm-input-filled" : ""), (error ? "gm-error" : ""), className ].join(' ')} /> { icon } { children }
);