function TopMenu()

in frontend/src/components/TopMenu.js [9:38]


function TopMenu() {
  const { cart } = useContext(AppContext);

  return (
    <div style={divStyle}>
      <Menu fixed="top" stackable borderless inverted style={menuStyle}>
        <Menu.Item header>
          <Link to="/">
            <Button
              circular
              color="yellow"
              icon="world"
            />
          </Link>
        </Menu.Item>
        <Menu.Item position="right">
          <Link to={"/Checkout"}>
            <Button
              color="yellow"
              icon="cart"
              label={"" + cart.items.length}
              labelPosition="right"
              style={cartStyle}
            />
          </Link>
        </Menu.Item>
      </Menu>
    </div>
  );
}