import Button from "@/components/Low/Button"; import { Module } from "@/interfaces"; import { LevelPart, ListeningPart, ReadingPart, SpeakingExercise, UserSolution, WritingExercise } from "@/interfaces/exam"; import clsx from "clsx"; import { ReactNode } from "react"; import { BsBook, BsClipboard, BsHeadphones, BsMegaphone, BsPen } from "react-icons/bs"; interface Props { sectionIndex: number; sectionLabel: string; defaultTitle: string; module: Module; section: LevelPart | ReadingPart | ListeningPart | WritingExercise | SpeakingExercise; onNext: () => void; } const PartDivider: React.FC = ({ sectionIndex, sectionLabel, section, module, defaultTitle, onNext }) => { const iconStyle = "text-white w-6 h-6"; const moduleIcon: { [key in Module]: ReactNode } = { reading: , listening: , writing: , speaking: , level: , }; return (
{moduleIcon[module]}

{section.intro ? `${sectionLabel} ${sectionIndex + 1}` : defaultTitle}

{section.intro && section.intro.split('\\n\\n').map((x, index) =>

not correct') }}>

)}
) } export default PartDivider;