import * as React from 'react' import { IconButton } from '@material-ui/core' import Clear from '@material-ui/icons/Clear' interface Props { value?: string action: any style?: React.CSSProperties } class ClearAdornment extends React.Component { public render() { if (this.props.value) { return ( ) } return null } } export default ClearAdornment