import * as React from 'react' ; import { FieldRenderProps } from 'react-final-form' ; import { TextField } from '@material-ui/core' ; export const Input = ( { meta : { touched , error } , input : inputProps , ... props } ) => ( < TextField error = { ! ! ( touched && error ) } helperText = { touched && error } { ... inputProps } { ... props } fullWidth / > ) ;