text: export default {
    namespaced: true,
    state: {
      sidebarClose: true,
      sidebarActiveElement: null,
    },
    mutations: {
      switchSidebar(state, value) {
        if (value) {
          state.sidebarClose = value;
        } else {
          state.sidebarClose = !state.sidebarClose;
        }
      },
      changeSidebarActive(state, index) {
        state.sidebarActiveElement = index;
      },
    },
    actions: {
      switchSidebar({ commit }, value) {
        commit('switchSidebar', value);
      },
      changeSidebarActive({ commit }, index) {
        commit('changeSidebarActive', index);
      },
    },
  };
  