import React from "react"; import { useAuth } from "../contexts/AuthContext"; import { Box, List, ListItem, ListItemIcon, ListItemButton, ListItemText, Typography, Button, Switch, Tooltip, Drawer, Divider, Accordion, AccordionSummary, AccordionDetails, } from "@mui/material"; import HomeIcon from "@mui/icons-material/Home"; import HttpIcon from "@mui/icons-material/Http"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; import TerminalIcon from "@mui/icons-material/Terminal"; import BarChart from "@mui/icons-material/BarChart"; import { useRouter } from "next/router"; import { useTheme } from "@mui/material/styles"; import Image from "next/image"; interface NavDrawerProps { toggleTheme: () => void; isDarkMode: boolean; } const drawerWidth = 240; const NavDrawer: React.FC = ({ toggleTheme, isDarkMode }) => { const router = useRouter(); const theme = useTheme(); const { logout, user, isAuthenticated } = useAuth(); return (
router.push("/")}> router.push("/jobs")}> router.push("/statistics")}> router.push("/logs")}>
{isAuthenticated ? ( <> Welcome, {user?.full_name} ) : ( )} } aria-controls="panel1a-content" id="panel1a-header" > Quick Settings

Dark Theme Toggle

); }; export default NavDrawer;