import { ChevronDownIcon } from "@heroicons/react/24/outline"; import { SectionDto } from "@nice/common"; import { AnimatePresence, motion } from "framer-motion"; import React from "react"; import { LectureItem } from "./LectureItem"; // components/CourseSyllabus/SectionItem.tsx interface SectionItemProps { section: SectionDto; index?: number; isExpanded: boolean; onToggle: (sectionId: string) => void; onLectureClick: (lectureId: string) => void; ref: React.RefObject; } export const SectionItem = React.forwardRef( ({ section, index, isExpanded, onToggle, onLectureClick }, ref) => (
{isExpanded && ( {section.lectures.map((lecture) => ( ))} )}
) );