"use client"; import { cn } from "@/lib/utils"; import { useSidebarStore } from "@/lib/stores/sidebar-store"; import { usePathname } from "next/navigation"; import { NavTree } from "./nav-tree"; import { SidebarHeader } from "./sidebar-header"; import ChatSidebar from "../chat/ChatSidebar"; export function Sidebar({ onOpenSearch, onQuickAction, }: { onOpenSearch?: () => void; onQuickAction?: (type: string) => void; }) { const pathname = usePathname(); const isChatRoute = pathname.startsWith("/") && pathname.includes("/chat/"); const collapsed = useSidebarStore((s) => s.isCollapsed); return ( ); }