import { Users, Newspaper, Calendar, GraduationCap, type LucideIcon } from 'lucide-react' interface Stat { label: string value: number icon: string } const ICON_MAP: Record = { '👥': Users, '📰': Newspaper, '📅': Calendar, '🎓': GraduationCap, } export function StatsCards({ stats }: { stats: Stat[] }) { return (
{stats.map((stat) => { const Icon = ICON_MAP[stat.icon] ?? Users return (
{stat.value}
{stat.label}
) })}
) }