import { defineStore } from 'pinia'

export const useQuestionStore = defineStore({
    id: 'questions',
    state: () => ({
        questions: []
    }),
    actions: {
        storeQuestions(questionArray) {
            this.questions = [...questionArray]
        },
        nextQuestion() {
            this.currentQuestion ++
        },
        previousQuestion() {
            this.currentQuestion --
        }
    }
})