| 14 | // import { LinkedIn } from "@material-ui/icons"; |
| 15 | |
| 16 | const Header = () => { |
| 17 | const dispatch = useDispatch(); |
| 18 | |
| 19 | const logoutHandler = async () => { |
| 20 | await auth.signOut(); |
| 21 | dispatch(logout()); |
| 22 | }; |
| 23 | |
| 24 | return ( |
| 25 | <div className="header"> |
| 26 | <div className="header__left"> |
| 27 | <img src={logo} alt="Linkedin Logo" /> |
| 28 | |
| 29 | <div className="header__search"> |
| 30 | <SearchIcon /> |
| 31 | <input type="text" placeholder="Search" /> |
| 32 | </div> |
| 33 | </div> |
| 34 | |
| 35 | <div className="header__right"> |
| 36 | <HeaderOption Icon={HomeIcon} title="Home" /> |
| 37 | <HeaderOption Icon={SupervisorAccountIcon} title="My Network" /> |
| 38 | <HeaderOption Icon={BusinessCenterIcon} title="Jobs" /> |
| 39 | <HeaderOption Icon={ChatIcon} title="Messaging" /> |
| 40 | <HeaderOption Icon={NotificationsIcon} title="Notifications" /> |
| 41 | <HeaderOption title="Me" onClick={logoutHandler} avatar={true} /> |
| 42 | </div> |
| 43 | </div> |
| 44 | ); |
| 45 | }; |
| 46 | |
| 47 | export default Header; |