'use client'; import Card from '../ui/Card'; interface Achievement { id: string; title: string; description: string; icon: string; unlockedAt: string; rarity: 'common' | 'rare' | 'epic' | 'legendary'; } const mockAchievements: Achievement[] = [ { id: '1', title: 'First Victory', description: 'Won your first race', icon: 'πŸ†', unlockedAt: '2024-03-15', rarity: 'common' }, { id: '2', title: '10 Podiums', description: 'Achieved 10 podium finishes', icon: 'πŸ₯ˆ', unlockedAt: '2024-05-22', rarity: 'rare' }, { id: '3', title: 'Clean Racer', description: 'Completed 25 races with 0 incidents', icon: '✨', unlockedAt: '2024-08-10', rarity: 'epic' }, { id: '4', title: 'Comeback King', description: 'Won a race after starting P10 or lower', icon: '⚑', unlockedAt: '2024-09-03', rarity: 'rare' }, { id: '5', title: 'Perfect Weekend', description: 'Pole, fastest lap, and win in same race', icon: 'πŸ’Ž', unlockedAt: '2024-10-17', rarity: 'legendary' }, { id: '6', title: 'Century Club', description: 'Completed 100 races', icon: 'πŸ’―', unlockedAt: '2024-11-01', rarity: 'epic' }, ]; const rarityColors = { common: 'border-gray-500 bg-gray-500/10', rare: 'border-blue-400 bg-blue-400/10', epic: 'border-purple-400 bg-purple-400/10', legendary: 'border-warning-amber bg-warning-amber/10' }; export default function CareerHighlights() { return (

Key Milestones

Achievements

{mockAchievements.map((achievement) => (
{achievement.icon}
{achievement.title}
{achievement.description}
{new Date(achievement.unlockedAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })}
))}
🎯

Next Goals

Win 25 races 23/25
); } function MilestoneItem({ label, value, icon }: { label: string; value: string; icon: string }) { return (
{icon} {label}
{value}
); }