import React from 'react'; import { AppBar, Toolbar, IconButton, Typography } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import AccountCircle from '@material-ui/icons/AccountCircle'; import NotificationsIcon from '@material-ui/icons/Notifications'; import HomeIcon from '@material-ui/icons/Home'; import SearchBar from './SearchBar'; interface PropTypes { setPage: (newPage: string) => void; } const useStyles = makeStyles({ root: { display: 'flex', justifyContent: 'space-around', width: '60%', margin: 'auto' }, logo: { fontWeight: 'bold' } }); const Header: React.FC = ({ setPage }) => { const classes = useStyles(); const handleHome = (): void => { setPage('feed'); }; const handleProfile = (): void => { setPage('profile'); }; const handleNotifications = (): void => {}; return ( Which
); }; export default Header;