Files
tps/src/modules/5s/board-game-store.ts
2025-08-05 22:41:53 +02:00

21 lines
453 B
TypeScript

import { boardGames } from '@/modules/5s/types/board-games'
import { BoardGame } from '@/modules/5s/types/workshop'
import { defineStore } from 'pinia'
type State = {
boardGames: BoardGame[]
currentBoardGame: BoardGame | null
}
export const useBoardGameStore = defineStore('day', {
state: (): State => ({
boardGames: [],
currentBoardGame: null
}),
actions: {
initGame() {
this.currentBoardGame = boardGames[0]
}
}
})