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 (

Command Center

Truth Anchor v11.2 Dashboard

Updated: {lastUpdate.toLocaleTimeString()}
{metrics.map((metric, index) => { const Icon = metric.icon; return (
0 ? 'text-truth-600' : metric.change < 0 ? 'text-danger-600' : 'text-slate-500' }`}> {metric.change > 0 ? '+' : ''}{metric.change}%

{metric.value}

{metric.label}

); })}
{quickActions.map((action, index) => { const Icon = action.icon; return ( ); })}

System Status

{systemStatus.map((service) => (
{service.name}
{service.status}
))}

Quick Start Guide

Strategic Advisor

Get uncensored, strategic AI counsel for complex situations. Analyze scenarios from multiple angles with actionable strategies.

Verification

Verify claims, fact-check information, and analyze content with AI-powered multi-model consensus.

); }