import { FC, useState } from "react";
import {
Box,
Grid,
Typography,
List,
ListItemButton,
ListItemIcon,
ListItemText,
ListItemSecondaryAction,
Drawer,
Collapse,
} from "@mui/material";
import {
FeaturedPlayList as FeaturedPlayListIcon,
Person as PersonIcon,
Analytics as AnalyticsIcon,
Logout as LogoutIcon,
Cottage as CottageIcon,
Settings as SettingsIcon,
} from "@mui/icons-material";
import { useRouter } from "next/router";
import Link from "next/link";
import Image from "next/image";
import LinkLogo from "public/link-logo-small.png";
const openWidth = 270;
const closedWidth = 100;
const MenuItem = ({
name,
href,
Icon,
iconSize,
inset = false,
selected = false,
badge,
}: any) => (
{iconSize > 0 ? (
) : (
)}
{name}
}
/>
{badge && (
{badge}
)}
);
interface SidebarProps {
open: boolean;
}
export const Sidebar: FC = ({ open }) => {
const { pathname } = useRouter();
console.log({ pathname });
return (
.
CDR Link
Hello
Nicholas
);
};