import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import SearchIcon from '@material-ui/icons/Search'; import { IconButton, Input, InputAdornment, FormControl } from '@material-ui/core'; const styles = theme => ({ search: { display: 'block', background: '#fff', marginBottom: 10, paddingTop: 5, boxShadow: theme.shadows[2], '& > div': { width: '100%', }, '& input': { padding: '10px 8px' } } }); class SearchIcons extends React.Component { render() { const { filterText, classes, handleSearch } = this.props; return ( )} /> ); } } SearchIcons.propTypes = { classes: PropTypes.object.isRequired, filterText: PropTypes.string.isRequired, handleSearch: PropTypes.func.isRequired, }; export default withStyles(styles)(SearchIcons);