import { NavLink } from "react-router-dom"; import { LayoutDashboard, Settings, History, Brain, Plug, Users, Globe, ChevronDown, X, Orbit, Gauge, Sparkles, Send, } from "lucide-react"; import { cn } from "@/lib/utils"; import { useTranslation, LANGUAGES } from "@/lib/i18n"; import { useState } from "react"; import { ChangelogButton } from "@/components/help/ChangelogButton"; // Telegram group invite link (same as the help dialog). const TELEGRAM_GROUP_URL = "https://t.me/+ODpy7_7NlOE4NzA1"; const navItems = [ { to: "/", icon: LayoutDashboard, key: "nav.dashboard", code: "01" }, { to: "/sessions", icon: History, key: "nav.sessions", code: "02" }, { to: "/memory", icon: Brain, key: "nav.memory", code: "03" }, { to: "/providers", icon: Plug, key: "nav.providers_models", code: "04" }, { to: "/subagents", icon: Users, key: "nav.subagents", code: "05" }, { to: "/settings", icon: Settings, key: "nav.settings", code: "06" }, { to: "/speed-test", icon: Gauge, key: "nav.speed_test", code: "07" }, { to: "/generate", icon: Sparkles, key: "nav.generate", code: "08" }, ]; interface SidebarProps { mobileOpen?: boolean; onClose?: () => void; } export function BasicSidebar({ mobileOpen = false, onClose }: SidebarProps) { const { t, lang, setLang } = useTranslation(); const [langOpen, setLangOpen] = useState(false); return ( ); }