text: import Vue from 'vue';
  import Vuex from 'vuex';
  
  import VuexPersist from 'vuex-persist'; // Local storage data persistence
  
  import initiative from './modules/initiative';
  
  Vue.use(Vuex);
  
  const vuexLocalStorage = new VuexPersist({
    key: 'vuex',
    storage: window.localStorage, // Saves vuex state in local storage
    // reducer: state => ({ auth: state.auth }), // Only auth module stored in local storage
  });
  
  const store = new Vuex.Store({
    modules: {
      initiative,
    },
    plugins: [vuexLocalStorage.plugin],
  });
  
  export default store;
  