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

import TimeshareModule from './modules/timeshare/timeshare';
import UsersModule from './modules/users';
import StatusModule from './modules/timeshare/status';
import UnitConfigurationModule from './modules/timeshare/unitConfiguration';
import TimeshareBuyModule from './modules/timeshare/buyPage';
import SearchTabModule from './modules/searchTab';

Vue.use(Vuex);
/* eslint no-param-reassign: ["error", { "props": false }] */
export default new Vuex.Store({
  modules: {
    timeshare: TimeshareModule,
    users: UsersModule,
    status: StatusModule,
    unitConfiguration: UnitConfigurationModule,
    timeshareBuy: TimeshareBuyModule,
    searchTab: SearchTabModule,
  },
});
