import { useLocation, useNavigate } from 'react-router-dom'; import { Book, Clock, Code, House, Network, Puzzle, Settings } from 'lucide-react'; import { useI18n } from '../../i18n'; import { NAV_ITEMS, normalizeWorkspacePath } from '../../router/routes'; import blueLogo from '../../assets/images/login/blue_logo.png'; const MENU_MARKS: Record = { '/home': House, '/knowledge': Book, '/channels': Network, '/skills': Puzzle, '/cron': Clock, // '/scripts': Code, '/setting': Settings, }; export default function Sidebar() { const location = useLocation(); const navigate = useNavigate(); const { t } = useI18n(); const currentId = normalizeWorkspacePath(location.pathname); return ( ); }