import {
  GetterTree,
  MutationTree,
} from 'vuex';

interface State {
  filterPaneOpen: boolean;
}

export const state: State = {
  filterPaneOpen: false,
};

export const getters: GetterTree<State, State> = {
  filterPaneOpen(state) {
    return state.filterPaneOpen;
  },
};

export const mutations: MutationTree<State> = {
  filterPaneToggle(state, isOpen) {
    state.filterPaneOpen = isOpen;
  },
};

export const actions = {};
