"use client"; import { useState } from "react"; import type { CatalogEntry } from "@/lib/api/topology"; import { TopologyCompare } from "./TopologyCompare"; import { TopologyExplorer } from "./TopologyExplorer"; import { TopologyRun } from "./TopologyRun"; const TABS = ["build", "run", "compare"] as const; type Tab = (typeof TABS)[number]; /** Tabbed topology workbench: Build (catalog + visualizer), Run (one topology * as a durable job with live progress), and Compare (a task across topologies * → leaderboard + Pareto). */ export function TopologyWorkbench({ catalog }: { catalog: CatalogEntry[] }) { const [tab, setTab] = useState("build"); return (
{TABS.map((t) => ( ))}
{tab === "build" ? ( ) : tab === "run" ? ( ) : ( )}
); }