import React, { useState } from 'react'; import { ArrowRight, Check, Layers3, X } from 'lucide-react'; import { Course } from '../types'; import { PublicLearningPath } from '../services/db'; import { CourseCoverImage } from './CourseCoverImage'; interface LearningPathRowProps { paths: PublicLearningPath[]; courses: Course[]; onCourseSelect?: (course: Course) => void; } export const LearningPathRow: React.FC = ({ paths, courses, onCourseSelect }) => { const [selectedPath, setSelectedPath] = useState(null); const courseById = new Map(courses.map((course) => [course.id, course])); return <>

Formações

{paths.length} {paths.length === 1 ? 'formação' : 'formações'}
{paths.map((path) => )}
{selectedPath &&
Formação

{selectedPath.title}

{selectedPath.description}

    {selectedPath.courses.map((pathCourse, index) => { const course = courseById.get(pathCourse.id); return
  1. ; })}
Siga os cursos nesta ordem.
} ; };