import { UserStats } from '../../api/types'; import { cn } from '../../utils/helpers'; import { formatNumber } from '../../utils/formatters'; import { Swords, Trophy, Target, TrendingUp, Clock, Award } from 'lucide-react'; interface ProfileStatsProps { stats: UserStats; className?: string; } export function ProfileStats({ stats, className }: ProfileStatsProps) { const statCards = [ { label: 'Матчей сыграно', value: stats.matchesPlayed, icon: Swords, color: 'text-blue-400', }, { label: 'Побед', value: stats.matchesWon, icon: Trophy, color: 'text-yellow-400', }, { label: 'Флагов захвачено', value: stats.flagsCaptured, icon: Target, color: 'text-green-400', }, { label: 'Рейтинг', value: formatNumber(stats.rating), icon: TrendingUp, color: 'text-purple-400', }, { label: 'Часов в игре', value: stats.hoursPlayed, icon: Clock, color: 'text-orange-400', }, { label: 'Достижений', value: stats.achievements?.length || 0, icon: Award, color: 'text-pink-400', }, ]; return (
{stat.label}
{stat.value}