import useExamEditorStore from "@/stores/examEditor"; import { SpeakingExercise, InteractiveSpeakingExercise } from "@/interfaces/exam"; import Speaking2 from "./Speaking2"; import InteractiveSpeaking from "./InteractiveSpeaking"; import Speaking1 from "./Speaking1"; import { Module } from "@/interfaces"; interface Props { sectionId: number; exercise: SpeakingExercise | InteractiveSpeakingExercise; module: Module; } const Speaking: React.FC = ({ sectionId, module = "speaking" }) => { const { state } = useExamEditorStore( (state) => state.modules[module].sections.find((section) => section.sectionId === sectionId)! ); return ( <>
{sectionId === 1 && } {sectionId === 2 && } {sectionId === 3 && }
); }; export default Speaking;