import React, { useState, useEffect } from 'react';import {   TrendingUp, Users, ShieldAlert, Cpu, Server, Zap, Brain, Clock,   BarChart2, LineChart, Table2, Sparkles, RefreshCw, ArrowUpRight,   ArrowDownRight, Info, Search, Bell, User, Download, Ship, Camera, X, Activity, Dna, Building2, Leaf, ShieldCheck, BadgeCheck, Lock, Rocket, Microscope, Sun, Moon, Wrench, Flame, Package} from 'lucide-react';import {   BarChart, Bar, LineChart as ReLineChart, Line, XAxis, YAxis,   CartesianGrid, Tooltip, ResponsiveContainer, Cell, Legend } from 'recharts';/** * HELIX MARKET TRENDS * Complete Dashboard Artifact */const TARIFF_DATA = [  { category: "PCBs", code: "8534.00", pre2018: "0%", s301: "25%", s232: "0%", effective: "2019-05", impact: "Increased fabrication costs for consumer electronics." },  { category: "Semiconductors", code: "8542", pre2018: "0%", s301: "25%", s232: "0%", effective: "2018-07", impact: "Higher assembly costs, supply chain shifts to SE Asia." },  { category: "Aluminum Unwrought", code: "7601", pre2018: "0%", s301: "0%", s232: "10%", effective: "2018-03", impact: "Increased raw material costs for chassis/enclosures." },  { category: "Steel HRC", code: "7208", pre2018: "0%", s301: "25%", s232: "25%", effective: "2018-03", impact: "Higher structural component and tooling costs." },  { category: "Lithium-ion Batteries", code: "8507.60", pre2018: "3.4%", s301: "25%", s232: "0%", effective: "2024-08", impact: "Significant cost increase for EV and portable power." },  { category: "Solar Cells", code: "8541.43", pre2018: "0%", s301: "50%", s232: "0%", effective: "2024-09", impact: "Reduced margins for solar installations." },];const EXPORT_CONTROLS = [  { material: "Gallium & Germanium", entity: "China", type: "Export Licensing", date: "2023-08", impact: "Semiconductors, RF/Radar, Fiber Optics" },  { material: "Synthetic Graphite", entity: "China", type: "Export Licensing", date: "2023-12", impact: "EV Battery Anodes, Fuel Cells" },  { material: "Antimony", entity: "China", type: "Export Licensing", date: "2024-09", impact: "Munitions, Flame Retardants, Batteries" },  { material: "Advanced Lithography", entity: "US, NL, JP", type: "Export Ban", date: "2023-10", impact: "Advanced Node Foundry Capacity" },  { material: "Rare Earth Processing", entity: "China", type: "Tech Export Ban", date: "2023-12", impact: "Global Magnet Supply Chain (NdFeB)" },];