import React from 'react'; import { Link } from 'react-router-dom'; import { BookOpen } from 'lucide-react'; export default function LearnToday({ courses = [] }) { const recs = courses.filter((c) => c.status !== 'archived').slice(0, 4); return (

Learn

Micro-learning. 5-minute lessons. Learning increases value immediately.

{recs.length === 0 ? (

No recommendations yet.

) : (
{recs.map((c) => (
{c.title}
{c.estimated_minutes} min ยท {c.category}
+{Math.max(1, Math.round((c.xp || 100) / 20))} Score ))}
)}
); }