import { MutationTree } from 'vuex'

const state = () => ({
  projectId: null as string | null
})
export type RootStateType = ReturnType<typeof state>
const mutations: MutationTree<RootStateType> = {
  SET_PROJECT_ID (state, projectId: string) {
    state.projectId = projectId
  },
}
export default {
  state,
  mutations
}
