Created a prototype for one exercise of the reading module

This commit is contained in:
Tiago Ribeiro
2023-03-21 17:09:35 +00:00
parent be7665fab8
commit 740346f696
8 changed files with 414 additions and 4 deletions

19
src/stores/examStore.ts Normal file
View File

@@ -0,0 +1,19 @@
import {Module} from "@/interfaces";
import {create} from "zustand";
const useExamStore = create((set) => ({
reading: undefined,
listening: undefined,
speaking: undefined,
writing: undefined,
updateModule: (module: Module, id: string) => set(() => ({[module]: id})),
clearExam: () =>
set(() => ({
reading: undefined,
listening: undefined,
speaking: undefined,
writing: undefined,
})),
}));
export default useExamStore;