/*eslint-disable*/ import React from "react"; import Link from "next/link"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import Icon from "@material-ui/core/Icon"; import Chart from "@material-ui/icons/LocalGroceryStore"; // @material-ui/icons import { Apps, ShareTwoTone, Person } from "@material-ui/icons"; // core components import CustomDropdown from "components/CustomDropdown/CustomDropdown.js"; import Button from "components/CustomButtons/Button.js"; import styles from "assets/jss/nextjs-material-kit/components/headerLinksStyle.js"; import Logo from "assets/img/honda.png"; const useStyles = makeStyles(styles); export default function HeaderLinks({ username, ...props }) { const classes = useStyles(); return ( {/* Motor , YGP , Yamalube , Helmet , Apparel , Accessories , Service , Dealers , ]} /> */} {/* honda , Suzuki , Honda , Hino , Mercedes-Benz , BPR Berkat Sejati , Palembang Indah Mall , Hotel Emilia , Thamrin Home , Ketty Resto , ]} /> */} {/* */} {!username || username == "" ? ( ) : ( 12 ? username.substring(0, 9) + ".." : username } buttonProps={{ className: classes.navLink, color: "transparent", }} buttonIcon={Person} dropdownList={[
{ e.preventDefault(); fetch("/api/auth/logout", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ p: "SUZUKI" }), }).then((res) => { //if (res.ok) { window.location.href = "../honda/home"; /*} else{ }*/ }); }} > exit_to_app {" "} Logout
, // Profile, ]} /> )}
); }