import React from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; interface SidebarProps { companyName?: string; collapsed?: boolean; } export default function Sidebar({ companyName = "Zitlac Media", collapsed = false }: SidebarProps) { const location = useLocation(); const navigate = useNavigate(); const navItems = [ { icon: ( ), label: "Company Wiki", path: "/company-wiki", active: location.pathname === "/company-wiki" }, { icon: ( ), label: "Submissions", path: "/submissions", active: location.pathname === "/submissions" }, { icon: ( ), label: "Reports", path: "/reports", active: location.pathname === "/reports" || location.pathname === "/" }, { icon: ( ), label: "Chat", path: "/chat", active: location.pathname === "/chat" }, { icon: ( ), label: "Help", path: "/help", active: location.pathname === "/help" } ]; const settingsIcon = ( ); const handleNavClick = (path: string) => { navigate(path); }; return (