import { AnyQuizQuestion } from "@model/questionTypes/shared"; import { create } from "zustand"; import { devtools } from "zustand/middleware"; export type QuestionsStore = { questionsById: Record; }; const initialState: QuestionsStore = { questionsById: {}, }; export const useQuestionsStore = create()( devtools( () => initialState, { name: "QuestionsStore", enabled: process.env.NODE_ENV === "development", } ) );