import { FileText, Globe, Microscope } from "lucide-react"; import { useQuery } from "@tanstack/react-query"; import { getReports } from "@/lib/api"; import { cn } from "@/lib/utils"; import { ThemeToggle } from "./ThemeToggle"; export type View = "document" | "global"; const NAV: { id: View; label: string; icon: typeof FileText; desc: string }[] = [ { id: "document", label: "Document Chat", icon: FileText, desc: "Chat with one report" }, { id: "global", label: "Global Search", icon: Globe, desc: "Search across reports" }, ]; export function Sidebar({ view, onView }: { view: View; onView: (v: View) => void }) { const { data: reports } = useQuery({ queryKey: ["reports"], queryFn: getReports }); return ( ); }