import { useState, useEffect } from 'react'; import { useRouter } from 'next/router'; import { motion } from 'framer-motion'; import { Activity, Shield, Zap, Globe, RefreshCw, Gavel, Search, MessageSquareQuote, TrendingUp, Clock } from 'lucide-react'; export default function CommandCenter() { const router = useRouter(); const [metrics, setMetrics] = useState([ { id: '1', label: 'Active Sessions', value: '0', change: 0, icon: Activity, color: 'text-primary-600', bgColor: 'bg-primary-100 dark:bg-primary-900/30' }, { id: '2', label: 'Threat Level', value: 'Low', change: -5, icon: Shield, color: 'text-truth-600', bgColor: 'bg-truth-100 dark:bg-truth-900/30' }, { id: '3', label: 'API Status', value: 'Online', change: 0, icon: Zap, color: 'text-warning-600', bgColor: 'bg-warning-100 dark:bg-warning-900/30' }, { id: '4', label: 'Data Sources', value: '12', change: 2, icon: Globe, color: 'text-helios-600', bgColor: 'bg-helios-100 dark:bg-helios-900/30' }, ]); const [lastUpdate, setLastUpdate] = useState(new Date()); const [loading, setLoading] = useState(false); const fetchMetrics = async () => { setLoading(true); setTimeout(() => { setMetrics(prev => prev.map(m => ({ ...m, value: m.id === '1' ? Math.floor(Math.random() * 100).toString() : m.value }))); setLastUpdate(new Date()); setLoading(false); }, 500); }; useEffect(() => { fetchMetrics(); }, []); const quickActions = [ { label: 'Strategic Advisor', section: 'advisor', color: 'bg-helios-600 hover:bg-helios-700', icon: Gavel }, { label: 'Analyze Data', section: 'analyze', color: 'bg-primary-600 hover:bg-primary-700', icon: MessageSquareQuote }, { label: 'Verify Claims', section: 'verify', color: 'bg-truth-600 hover:bg-truth-700', icon: Search }, ]; const systemStatus = [ { name: 'AI Inference APIs', status: 'Operational', color: 'bg-truth-500' }, { name: 'Strategic Engine', status: 'Operational', color: 'bg-truth-500' }, { name: 'Data Pipeline', status: 'Operational', color: 'bg-truth-500' }, { name: 'External Feeds', status: 'Degraded', color: 'bg-warning-500' }, ]; return (
Truth Anchor v11.2 Dashboard
{metric.label}
Get uncensored, strategic AI counsel for complex situations. Analyze scenarios from multiple angles with actionable strategies.
Verify claims, fact-check information, and analyze content with AI-powered multi-model consensus.