import { useEffect, useState } from 'react'; import { Activity, ShieldCheck, ArrowUpRight, CheckCircle2 } from 'lucide-react'; import { Chart as ChartJS, RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend } from 'chart.js'; import { Radar } from 'react-chartjs-2'; ChartJS.register(RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend); export default function Dashboard() { const [chartData, setChartData] = useState(null); useEffect(() => { setChartData({ labels: ['Cultural Nuance', 'Safety Alignment', 'Grammar/Syntax', 'Local Idioms', 'Legal Compliance', 'Tone/Hierarchy'], datasets: [ { label: 'Optimized', data: [98, 95, 99, 92, 97, 96], backgroundColor: 'rgba(0, 229, 255, 0.3)', borderColor: '#00E5FF', pointBackgroundColor: '#00E5FF', pointBorderColor: '#fff', pointHoverBackgroundColor: '#fff', pointHoverBorderColor: '#00E5FF', borderWidth: 2, }, { label: 'Raw LLM', data: [45, 60, 85, 30, 50, 40], backgroundColor: 'rgba(74, 85, 104, 0.2)', borderColor: '#4A5568', pointBackgroundColor: '#4A5568', pointBorderColor: '#fff', pointHoverBackgroundColor: '#fff', pointHoverBorderColor: '#4A5568', borderWidth: 2, }, ], }); }, []); const chartOptions = { responsive: true, maintainAspectRatio: false, plugins: { legend: { display: false }, }, scales: { r: { angleLines: { color: 'rgba(255, 255, 255, 0.05)' }, grid: { color: 'rgba(255, 255, 255, 0.05)' }, pointLabels: { color: '#4A5568', font: { family: 'Roboto Mono', size: 10 }, }, ticks: { display: false }, suggestedMin: 0, suggestedMax: 100, }, }, }; return (
Intelligence Dashboard

Nordic AI Compliance & Data Ops Hub

Real-time System Monitoring Active
{/* Radar Chart Card */}

RLHF Accuracy Metrics

Raw LLM
Optimized
{chartData && }
{/* EU AI Act Status */}
Live Status

EU AI Act Compliance

Nordic Adaptation Framework v2.4

Risk Assessment PASSED
94% Alignment Score
{/* Case Study 1 */}
Healthcare

Medical AI Localization

0% Hallucination Rate

Optimizing diagnostic prompts for Norwegian healthcare protocols.

); }