- {orderedCourses.map((course) => {
- const isPlanned = plannedCourseIds.includes(course.id)
- const tutorialOptions = getTutorialSlotOptions(course)
- const visibleSlotId = resolveVisibleTutorialSlotId(tutorialOptions, hiddenSlotIds)
- const selectableCats = categoryControl.selectableOf(course)
- const category = categoryControl.categoryOf(course)
- return (
-
-
-
-
- {cleanCourseTitle(course.title, course.number)}
-
-
{courseMeta(course)}
-
-
-
-
- {selectableCats.length > 0 ? (
-
- Kategorie
- categoryControl.change(course, cat)}
- />
-
- ) : null}
-
- {isPlanned && tutorialOptions.length > 1 ? (
-
- Tutorium
- {tutorialOptions.map((option) => {
- const isSelected = option.slotId === visibleSlotId
- return (
-
- )
- })}
-
- ) : null}
-