"use client"; import { FC } from "react"; import { Box, Grid, Typography, List, ListItemButton, ListItemIcon, ListItemText, ListItemSecondaryAction, Drawer, } from "@mui/material"; import { ExpandCircleDown as ExpandCircleDownIcon, AccountCircle as AccountCircleIcon, Chat as ChatIcon, PermPhoneMsg as PhoneIcon, WhatsApp as WhatsAppIcon, Facebook as FacebookIcon, } from "@mui/icons-material"; import { usePathname } from "next/navigation"; import Link from "next/link"; import Image from "next/image"; import { fonts } from "../styles/theme"; // import LinkLogo from "@/public/link-logo-small.png"; // import { useSession, signOut } from "next-auth/react"; const openWidth = 270; const closedWidth = 100; const MenuItem = ({ name, href, Icon, iconSize, inset = false, selected = false, open = true, badge, target = "_self", }: any) => ( {iconSize > 0 ? ( ) : ( )} {open && ( {name} } /> )} {badge && badge > 0 ? ( {badge} ) : null} ); interface SidebarProps { open: boolean; setOpen: (open: boolean) => void; } export const Sidebar: FC = ({ open, setOpen }) => { const pathname = usePathname(); const { poppins } = fonts; // const { data: session } = useSession(); // const username = session?.user?.name || "User"; // const logout = () => { // signOut({ callbackUrl: "/login" }); // }; return ( { setOpen!(!open); }} > Link logo . {open && ( Metamigo )} ); };