const state = {
  registeredForEvent: {}
}

const getters = {
  isRegisteredForEvent: state => uuid => state.registeredForEvent[uuid]
}

const actions = {}

const mutations = {
  setEventRegisterStatus(state, payload) {
    const { uuid, status } = payload

    state.registeredForEvent[uuid] = status
  }
}

export default {
  state,
  getters,
  actions,
  mutations
}
