import { defineStore } from 'pinia'

export enum GameStatus {
  Complete = 'Complete',
  Postponed = 'Postponed',
  Pending = 'Pending'
}

export type Game = {
  potato: string
  alsoPotato: string
  title: string
  status: GameStatus
  fix: boolean
  datePosted: Date
  dateRun: Date
  gmPlayerName: string
  charactersPicked: []
  charactersApplied: []
}

export const useGameStore = defineStore('games', {
  state: () => {
    return {
      count: 0,
      games: [
        { potato: 'potato', alsoPotato: 'potato' } as Game,
        { potato: 'potato', alsoPotato: 'potato' } as Game,
        { potato: 'potato', alsoPotato: 'potato' } as Game
      ]
    }
  },
  actions: {
    increment() {
      this.count++
    }
  }
})
