MCPcopy Create free account
hub / github.com/codemistic/Web-Development / Header

Function Header

Yet Another LinkedIn Clone/Header.js:16–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14// import { LinkedIn } from "@material-ui/icons";
15
16const 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
47export default Header;

Callers 4

pngMethod · 0.50
jpgMethod · 0.50
pngMethod · 0.50
jpgMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected