      isOpen={editModal}
      onRequestClose={closeEditModal}
      lessonId={lessonId}
      courseId={id}
      setData={(data) => setLessons(lessons.map(lesson => 
        lesson.id === data.id ? {...data} : lesson))}
    />
    <Container>
      <LessonsList>
        {lessons.map((lesson, index) => (