import React, { useEffect, useMemo, useState } from 'react'; import { AlertTriangle, RefreshCw, Route, ServerCrash, Workflow } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { useAppContext } from '../context/AppContext'; import { FixedButton } from '../components/Button'; type EKGKV = { key?: string; score?: number; count?: number }; function StatCard({ title, value, subtitle, accent, icon, }: { title: string; value: string | number; subtitle?: string; accent: string; icon: React.ReactNode; }) { return (