import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    statusBarHeight: 0,
    navHeight: 0,
    tabbarHeight: 0,
  },
  mutations: {
    SET_NAV_HEIGHT: (state, val) => {
      state.navHeight = val
    },
    SET_TABBAR_HEIGHT: (state, val) => {
      state.tabbarHeight = val
    },
    SET_STATUS_BAR_HEIGHT: (state, val) => {
      state.statusBarHeight = val
    },
    SET_TAB_INDEX: (state, val) => {
      state.tempTabIndex = val
    }
  },
  actions: {
  },
  modules: {
  }
})
