import React from 'react'; import { AppBar, Toolbar, useScrollTrigger, Slide } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; interface PropTypes { menu: JSX.Element; logo: JSX.Element; search: JSX.Element; } const useStyles = makeStyles(theme => ({ root: { display: 'flex', justifyContent: 'space-between', }, })); const MobileHeader: React.FC = React.memo(props => { const classes = useStyles(); const trigger = useScrollTrigger(); const { menu, search, logo } = props; return ( {menu} {logo} {search} ); }); export default MobileHeader;