import { mediaConfig } from '@/lib/config/mediaConfig'; import { ActiveDriverCard } from '@/components/drivers/ActiveDriverCard'; import { Box } from '@/ui/Box'; import { Heading } from '@/ui/Heading'; import { Icon } from '@/ui/Icon'; import { Text } from '@/ui/Text'; import { Activity } from 'lucide-react'; const SKILL_LEVELS = [ { id: 'pro', label: 'Pro', color: 'text-yellow-400' }, { id: 'advanced', label: 'Advanced', color: 'text-purple-400' }, { id: 'intermediate', label: 'Intermediate', color: 'text-primary-blue' }, { id: 'beginner', label: 'Beginner', color: 'text-green-400' }, ]; const CATEGORIES = [ { id: 'beginner', label: 'Beginner', color: 'text-green-400' }, { id: 'intermediate', label: 'Intermediate', color: 'text-primary-blue' }, { id: 'advanced', label: 'Advanced', color: 'text-purple-400' }, { id: 'pro', label: 'Pro', color: 'text-yellow-400' }, { id: 'endurance', label: 'Endurance', color: 'text-orange-400' }, { id: 'sprint', label: 'Sprint', color: 'text-red-400' }, ]; interface RecentActivityProps { drivers: { id: string; name: string; avatarUrl?: string; isActive: boolean; skillLevel?: string; category?: string; }[]; onDriverClick: (id: string) => void; } export function RecentActivity({ drivers, onDriverClick }: RecentActivityProps) { const activeDrivers = drivers.filter((d) => d.isActive).slice(0, 6); return ( Active Drivers Currently competing in leagues {activeDrivers.map((driver) => { const levelConfig = SKILL_LEVELS.find((l) => l.id === driver.skillLevel); const categoryConfig = CATEGORIES.find((c) => c.id === driver.category); return ( onDriverClick(driver.id)} /> ); })} ); }