import React, { useState } from "react"; import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; const TABS = [ { key: "performance", label: "Performance" }, { key: "risk", label: "Risk" }, { key: "benchmark", label: "Macro" }, { key: "stress", label: "Stress" }, { key: "allocation", label: "Allocation Strategy" }, { key: "goal_planning", label: "Goal Planning" }, ]; export default function AgentTabs({ inferences }) { const [active, setActive] = useState("performance"); const visibleTabs = TABS.filter((t) => { if (t.key === "allocation") return !!inferences.allocation; if (t.key === "goal_planning") return !!inferences.goal_planning; return true; }); return (

Multi-Agent Interpretations

{visibleTabs.map((t) => ( ))}
{inferences[active] || "No data."}
); }