import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import ShoppingCartIcon from '@material-ui/icons/ShoppingCart'; import SearchIcon from '@material-ui/icons/Search'; import { AppBar, Toolbar, IconButton, Badge } from '@material-ui/core'; import Cart from '../Cart/Cart'; import styles from './search-jss'; class SearchProduct extends React.Component { state = { anchorEl: null, }; handleClick = event => { this.setState({ anchorEl: event.currentTarget }); }; handleClose = () => { this.setState({ anchorEl: null }); }; render() { const { anchorEl } = this.state; const { classes, dataCart, removeItem, checkout, totalItems, totalPrice, search } = this.props; return (