summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/create_cluster/store/cluster_dropdown/index.js
blob: 0b19589215c59f3e0f15fbff24907803e082ac0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import * as getters from './getters';
import actions from './actions';
import mutations from './mutations';
import state from './state';

const createStore = ({ fetchFn, initialState }) => ({
  actions: actions(fetchFn),
  getters,
  mutations,
  state: Object.assign(state(), initialState || {}),
});

export default createStore;