import { motion } from "framer-motion"; import { Link } from "wouter"; import { useQuery } from "@tanstack/react-query"; import { ArrowLeft, Users, ShieldAlert, Globe, Activity, TrendingUp, Target } from "lucide-react"; import { Bar, BarChart, ResponsiveContainer, LineChart, Line, Tooltip } from "recharts"; import mapBg from '@assets/generated_images/abstract_holographic_world_map_data_visualization.png'; export default function Dashboard() { const { data: metrics } = useQuery({ queryKey: ["metrics"], queryFn: async () => { const res = await fetch("/api/metrics"); return res.json(); }, }); const MOCK_DATA = [ { name: "Mon", value: 400 }, { name: "Tue", value: 300 }, { name: "Wed", value: 550 }, { name: "Thu", value: 450 }, { name: "Fri", value: 700 }, { name: "Sat", value: 600 }, { name: "Sun", value: 800 }, ]; const THREAT_DATA = [ { name: "00:00", value: 12 }, { name: "04:00", value: 8 }, { name: "08:00", value: 45 }, { name: "12:00", value: 120 }, { name: "16:00", value: 90 }, { name: "20:00", value: 35 }, ]; return (
{/* Background Map */}
{/* Header */}

Axiom Command

Global Ecosystem Status // Live Data from Supabase

System Status
OPERATIONAL
{/* KPI Grid - Live Data */}
} /> } /> } /> } />
{/* Charts Section */}
{/* Map / Main Viz */}

Global Deployment Heatmap

{/* Fake Map Markers */}
{/* Side Charts */}

Recruitment Velocity

Threat Vectors (24h)

{/* XP Stats */}

Ecosystem Stats (Live)

{metrics?.totalXP?.toLocaleString() || 0}
Total XP Earned
{metrics?.avgLevel || 1}
Avg Level
{metrics?.totalProfiles || 0}
Registered
{metrics?.onlineUsers || 0}
Online Now
); } function Card({ title, value, icon }: { title: string, value: number, icon: React.ReactNode }) { return (
{title}
{icon}
{value}
) }