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