import React from 'react' ; import { FieldProps } from 'react-jsonschema-form' ; import { makeStyles } from '@material-ui/styles' ; import Typography from '@material-ui/core/Typography' ; const useStyles = makeStyles ( { root : { marginTop : 5 , } , } ) ; const DescriptionField = ( { description } ) => { if ( description ) { const classes = useStyles ( ) ; return ( < Typography variant = "subtitle2" className = { classes . root } > { description } < /Typography>); } return null ; } ; export default DescriptionField ;