import { useNavigate, useLocation } from 'react-router-dom'; import { Home, FolderKanban, Award, Settings, HelpCircle, LogOut, ChevronRight, X } from 'lucide-react'; const navItems = [ { label: "Home", icon: Home, path: "/intern" }, { label: "List Projects", icon: FolderKanban, path: "/intern/projects" }, { label: "Certificates", icon: Award, path: "/intern/certificates" }, ]; const prefItems = [ { label: "Settings", icon: Settings, path: "/intern/settings" }, { label: "FAQ", icon: HelpCircle, path: "/intern/faq" }, { label: "Logout", icon: LogOut, path: "/login-internify", danger: true }, ]; interface SidebarProps { isOpen: boolean; closeSidebar: () => void; } export default function SidebarIntern({ isOpen, closeSidebar }: SidebarProps) { const navigate = useNavigate(); const location = useLocation(); const handleNav = (path: string) => { navigate(path); closeSidebar(); // Otomatis tutup sidebar setelah klik menu di HP }; return ( ); }