"use client" import * as React from "react" import { Bot, Settings2, LayoutDashboard, ScrollText, CheckSquare, DollarSign, FolderOpen, Briefcase, BarChart2, } from "lucide-react" import { useTigerLogs } from "@/hooks/use-bridge" import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarRail, } from "@/components/ui/sidebar" // Tiger-specific navigation - no more old clawdbot pages const navMain = [ { title: "Dashboard", url: "/", icon: LayoutDashboard, }, { title: "Projects", url: "/projects", icon: Briefcase, }, { title: "Workspace", url: "/workspace", icon: FolderOpen, }, { title: "Tasks", url: "/tasks", icon: CheckSquare, }, { title: "Positions", url: "/positions", icon: BarChart2, }, { title: "Cost Monitor", url: "/cost", icon: DollarSign, }, { title: "Logs", url: "/logs", icon: ScrollText, }, ] const navSecondary = [ { title: "Settings", url: "/settings", icon: Settings2, }, ] export function AppSidebar({ ...props }: React.ComponentProps) { // Use Tiger logs SSE for connection status // connected means the bridge is reachable const { connected } = useTigerLogs({ lines: 1, maxLines: 1 }) return (
{connected ? "Live" : "Offline"}
{navMain.map((item) => ( {item.title} ))} {navSecondary.map((item) => ( {item.title} ))}
) }