import React from 'react'; import { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; import { Stack } from '@/ui/Stack'; interface AchievementCardProps { title: string; description: string; icon: string; unlockedAt: string; rarity: 'common' | 'rare' | 'epic' | 'legendary'; } 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 function AchievementCard({ title, description, icon, unlockedAt, rarity, }: AchievementCardProps) { return ( {icon} {title} {description} {new Date(unlockedAt).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })} ); }