import createPersistedState from 'vuex-persistedstate';
import options from './.localmodules';

const { key = 'vuex', paths, storage } = options;

const createStorageState = () => {
  return createPersistedState({
    key,
    paths,
    storage,
  });
};

export default createStorageState;
