import { DateFormatter } from '@/lib/formatters/DateFormatter'; import { Card } from '@/ui/Card'; import { Group } from '@/ui/Group'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; interface AchievementCardProps { title: string; description: string; icon: string; unlockedAt: string; rarity: 'common' | 'rare' | 'epic' | 'legendary'; } export function AchievementCard({ title, description, icon, unlockedAt, rarity, }: AchievementCardProps) { const rarityVariantMap = { common: 'rarity-common', rare: 'rarity-rare', epic: 'rarity-epic', legendary: 'rarity-legendary' } as const; return ( {icon} {title} {description} {DateFormatter.formatShort(unlockedAt)} ); }