import React from 'react' ; import { InputFieldProps } from '../../interfaces' ; import { Wrapper , Label } from './styles' ; const InputField = ( { label , children , error , relative } ) => ( < Wrapper error = { error } relative = { relative } > { label && < Label > { label } < /Label>} { children } < /Wrapper>); export default InputField ;