import { useTheme } from "@/hooks/useTheme"; import { loadConfig } from "@/lib/config"; import { COLOR } from "@/lib/constants"; import { Link, useMatchRoute } from "@tanstack/react-router"; import { motion } from "framer-motion"; import { Boxes, Brain, ChevronRight, LayoutDashboard, Moon, Settings, Sun } from "lucide-react"; const navItems = [ { to: "/" as const, label: "Dashboard", icon: LayoutDashboard, exact: true }, { to: "/workspaces" as const, label: "Workspaces", icon: Boxes, exact: false }, { to: "/settings" as const, label: "Settings", icon: Settings, exact: false }, ]; export function Sidebar() { const matchRoute = useMatchRoute(); const config = loadConfig(); const { theme, toggle } = useTheme(); return ( {/* Logo */}
Honcho UI
{config && (

{config.baseUrl.replace(/^https?:\/\//, "")}

)}
{/* Nav */} {/* Theme toggle + footer */}

API v3

); }