import React, { useState, useEffect } from 'react'; import { PieChart, Pie, Cell, ResponsiveContainer, Tooltip } from 'recharts'; import { Shield, Activity, Box, AlertTriangle, Lock } from 'lucide-react'; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; const NurvSecureDashboard = () => { const [dimensionalData, setDimensionalData] = useState([]); const [activeMarkers, setActiveMarkers] = useState(0); const [securityScore, setSecurityScore] = useState(0); const [alerts, setAlerts] = useState([]); // Cyberpunk-inspired color scheme const COLORS = ['#00f5d4', '#00b4d8', '#7209b7', '#3f37c9', '#4895ef']; useEffect(() => { // Simulated data setDimensionalData([ { name: 'Dimension 5', value: 35, security: 98 }, { name: 'Dimension 4', value: 30, security: 95 }, { name: 'Dimension 3', value: 25, security: 92 }, { name: 'Dimension 2', value: 20, security: 88 }, { name: 'Dimension 1', value: 15, security: 85 } ]); setActiveMarkers(156); setSecurityScore(98.7); setAlerts([ { id: 1, type: 'warning', message: 'Unusual activity detected in dimension 4' }, { id: 2, type: 'info', message: 'New marker generated for blockchain #45892' } ]); }, []); const CustomTooltip = ({ active, payload }) => { if (active && payload && payload.length) { return (

{payload[0].name}

Security Level: {payload[0].payload.security}%

Active Markers: {payload[0].value}

); } return null; }; return (
{/* Header with glow effect */}

NurvSecure™️ Dashboard

System Active
{/* Stats Grid with glassmorphism effect */}

Active Markers

{activeMarkers}

Security Score

{securityScore}%

Active Alerts

{alerts.length}

{/* Dimensional Security Donut */}

Dimensional Security Layers

{dimensionalData.map((entry, index) => ( ))} } />
{/* Alerts Section with neon glow */}

System Alerts

{alerts.map((alert) => ( {alert.type === 'warning' ? 'Warning' : 'Information'} {alert.message} ))}
); }; export default NurvSecureDashboard;