import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
import CreateInvoiceStore from './modules/CreateInvoice/store';
import CreateProposalStore from './modules/CreateProposal/store';
import CreateEstimateStore from './modules/CreateEstimate/store';
import CommonStore from './modules/CommonState/store';
import InstallerStore from './modules/Installer/store';

const store = () => {
  return new Vuex.Store({
    modules: {
      createInvoiceStore: CreateInvoiceStore,
      createProposalStore: CreateProposalStore,
      createEstimateStore: CreateEstimateStore,
      commonStore: CommonStore,
      installerStore: InstallerStore
    }
  });
};

export default store;