import { useNavigate, useLocation } from 'react-router-dom'; import { Home, FolderKanban, UsersRound, FileBadge , Settings, HelpCircle, LogOut, X } from 'lucide-react'; import { FaUserTie } from "react-icons/fa"; const navItems = [ { label: "Home", icon: Home, path: "/mentor" }, { label: "List Projects", icon: FolderKanban, path: "/mentor/projects" }, { label: "Interns", icon: UsersRound, path: "/mentor/intern" }, { label: "Certificates", icon: FileBadge, path: "/mentor/certificates" }, ]; const prefItems = [ { label: "Settings", icon: Settings, path: "/mentor/settings" }, { label: "FAQ", icon: HelpCircle, path: "/mentor/faq" }, { label: "Logout", icon: LogOut, path: "/login-internify", danger: true, isLogout: true }, ]; interface SidebarProps { isOpen: boolean; closeSidebar: () => void; } export default function SidebarMentor({ isOpen, closeSidebar }: SidebarProps) { const navigate = useNavigate(); const location = useLocation(); const handleNav = (path: string) => { navigate(path); closeSidebar(); }; const handleLogout = () => { document.cookie = "token=; path=/; max-age=86400; SameSite=Strict"; closeSidebar(); navigate("/login-internify", { replace: true }); }; return ( ); }