import React from 'react'; import { AppBar, Toolbar } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import SearchBar from './SearchBar'; interface PropTypes { logo: JSX.Element; feed: JSX.Element; notifications: JSX.Element; profile: JSX.Element; } const useStyles = makeStyles({ root: { width: '60%', margin: 'auto', display: 'flex', justifyContent: 'space-around' }, group: { display: 'flex' } }); const BrowserHeader: React.FC = React.memo(props => { const classes = useStyles(); const { logo, feed, notifications, profile } = props; return ( {logo}
{feed} {notifications} {profile}
); }); export default BrowserHeader;