import Vue from 'vue'
import Vuex from 'vuex'
import platformUserManagement from './platformUserManagement/index'
import { iPlatformModuleState } from './platformUserManagement/types'
import loanProductManagement from './LoanProductManagement/index'
import { iProductModuleState } from './LoanProductManagement/type'
import UserManagement from './UserManagement/index'

Vue.use(Vuex)

const store = new Vuex.Store<{
  platformUserManagement?: iPlatformModuleState
  loanProductManagement?: iProductModuleState
}>({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    platformUserManagement,
    loanProductManagement,
    UserManagement,
  },
})

export default store
