"use client"; import { useState } from "react"; import { LiveCompare } from "./tabs/LiveCompare"; import { Benchmark } from "./tabs/Benchmark"; import { CostAnalysis } from "./tabs/CostAnalysis"; import { GraphExplorer } from "./tabs/GraphExplorer"; const TABS = [ { id: "live", label: "Live Compare", icon: "πŸ”΄", color: "#FF6B00" }, { id: "benchmark", label: "Benchmark", icon: "πŸ“Š", color: "#0072CE" }, { id: "cost", label: "Cost Analysis", icon: "πŸ’°", color: "#cc785c" }, { id: "graph", label: "Graph Explorer", icon: "πŸ•ΈοΈ", color: "#5db8a6" }, ] as const; type TabId = (typeof TABS)[number]["id"]; export function DashboardTabs() { const [active, setActive] = useState("live"); return (
{/* Tab bar */}
{TABS.map((tab) => ( ))}
{/* Tab content */}
{active === "live" && } {active === "benchmark" && } {active === "cost" && } {active === "graph" && }
); }