export const state = () => ({
  menuOpen: true,
  isMobile: false
})

export const mutations = {
  TOGGLE_MENU(state) {
    state.menuOpen = !state.menuOpen
  }
}

export const actions = {
  toggleMenu({ commit }) {
    commit('TOGGLE_MENU')
  }
}

export const getters = {
  menuOpen: (state) => state.menuOpen,
  isMobile: (state) => state.isMobile
}
