import { AIDataCenter } from '../ai/AIDataCenter';
import { AIModelIntegration } from '../ai/AIModelIntegration';
import { AIModelApplication } from '../ai/AIModelApplication';
import { AIApplicationGeneration } from '../ai/AIApplicationGeneration';
import { AISchedulingManagement } from '../ai/AISchedulingManagement';
import { AIDecisionGeneration } from '../ai/AIDecisionGeneration';
import { AIDecisionSupport } from '../ai/AIDecisionSupport';
import { AIDecisionApplication } from '../ai/AIDecisionApplication';
import { AIKnowledgeBase } from '../ai/AIKnowledgeBase';
import { AIMonitoringCenter } from '../ai/AIMonitoringCenter';
import { DeviceType } from '../ai/DeviceType';
import { DeviceParameter } from '../ai/DeviceParameter';

interface AIModelSystemProps {
  activePath?: string;
}

export function AIModelSystem({ activePath }: AIModelSystemProps) {
  const renderContent = () => {
    switch (activePath) {
      // 全域数据感知中心
      case '/ai/data-center/external':
      case '/ai/data-center/iot':
        return <AIDataCenter activePath={activePath} />;
      case '/ai/data-center/device-type':
        return <DeviceType />;
      case '/ai/data-center/device-parameter':
        return <DeviceParameter />;
      // 模型接入集成
      case '/ai/model-integration/access':
      case '/ai/model-integration/management':
        return <AIModelIntegration activePath={activePath} />;
      // 模型应用中心
      case '/ai/model-application/generation':
      case '/ai/model-application/scheduling':
        return <AIModelApplication activePath={activePath} />;
      // 智能决策生成
      case '/ai/decision/fusion':
      case '/ai/decision/simulation':
      case '/ai/decision/log':
        return <AIDecisionGeneration activePath={activePath} />;
      // 智能决策支持
      case '/ai/support/dashboard':
      case '/ai/support/detail':
        return <AIDecisionSupport activePath={activePath} />;
      // 决策应用
      case '/ai/application/device-control':
      case '/ai/application/external-system':
        return <AIDecisionApplication activePath={activePath} />;
      // AI知识库
      case '/ai/knowledge/generation':
        return <AIKnowledgeBase activePath={activePath} />;
      // 监控中心
      case '/ai/monitoring/model':
      case '/ai/monitoring/audit':
      case '/ai/monitoring/alert':
        return <AIMonitoringCenter activePath={activePath} />;
      default:
        return <AIDataCenter activePath={activePath} />;
    }
  };

  return renderContent();
}
