import React from "react"; const CourseChapter = ({ chapters }) => { return (
{/* top */}

سرفصل دوره

علوم تجربی پایه ششم
{/* divider */}
{/* course title */} {chapters.map((chapter, index) => (

{chapter.title}

{chapter.duration}
{chapter.lessons.map((lesson, index) => (
{/* right div dot dot */}
mahdi
{/* left div content */}
{/* top */}

{lesson.title}

{lesson.duration}
{/* bottom */}
{lesson.play}
))}
))}
); }; export default CourseChapter; CourseChapter.defaultProps = { chapters: [ { title: "فصل اول: مباحث جوشش مواد مذاب در مرکز", duration: "2:30:13", lessons: [ { title: "آیا گوگل از ما دزدی میکند؟", duration: "14:30", play: "پخش" }, ], }, ], };