import { createStore } from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'

export type ThemeType = 'manage' | 'service' | 'safety'
export interface GlobalStateProps {
  showLoading: boolean
  curTheme: ThemeType
}
export default createStore<GlobalStateProps>({
  state,
  mutations,
  actions,
})
