import Link from 'next/link'; import { Sparkles, Plug, Zap, Layers, ArrowRight } from 'lucide-react'; const ICONS = { Sparkles, Plug, Zap, Layers }; const COLORS = { emerald: { bg: 'rgb(16 185 129 / 0.1)', dot: '#10b981', text: '#059669' }, teal: { bg: 'rgb(20 184 166 / 0.1)', dot: '#14b8a6', text: '#0d9488' }, amber: { bg: 'rgb(245 158 11 / 0.1)', dot: '#f59e0b', text: '#d97706' }, indigo: { bg: 'rgb(99 102 241 / 0.1)', dot: '#6366f1', text: '#4f46e5' }, }; export default function SeriesGrid({ series }) { if (!series || series.length === 0) return null; return (

Серии

{series.map(s => { const Icon = ICONS[s.icon] || Layers; const c = COLORS[s.color] || COLORS.emerald; return (
{s.articles_count} {s.articles_count === 1 ? 'материал' : 'материалов'}

{s.title}

{s.intro && (

{s.intro}

)}
Открыть серию
); })}
); }