import React from 'react'; import { Box, Text } from 'ink'; import { SystemInsight } from './types.js'; interface PredictiveInsightsProps { insights: SystemInsight[]; } export const PredictiveInsights: React.FC = ({ insights }) => { if (!insights || insights.length === 0) return null; return ( 📊 SENTINEL PREDICTIVE GOVERNANCE │ Alerts: {insights.length} {insights.map((insight) => { const color = insight.severity === 'critical' ? 'red' : insight.severity === 'warning' ? 'yellow' : 'cyan'; return ( [{insight.insight_type.toUpperCase()}] {insight.title} {insight.message} ); })} ); };