import SystemStatusChart from "../../Charts/SystemStatusChart"; import TreeTable from "../UI/TreeTable"; import FlowChart from "../TreeChart/FlowChart"; import { getStatusColor } from "../TreeChart/dataUtils"; import MetricsAnalyzer from "./MetricsAnalyzer"; // Импортируем новый компонент const TabContent = ({ activeTab, tabs, statusHistories, treeData1, tabContent, handleOpenTab }) => { const countStatuses = (data) => { const counts = { green: 0, yellow: 0, orange: 0, red: 0 }; const countRecursive = (node) => { if (node.status) { counts[node.status]++; } if (node.items && node.items.length > 0) { node.items.forEach(child => countRecursive(child)); } }; countRecursive(data); return counts; }; if (activeTab === "Главная") { const statusCounts = treeData1 ? countStatuses(treeData1) : { green: 0, yellow: 0, orange: 0, red: 0 }; return (
Нет данных
; } }; export default TabContent;