import { GetterTree, MutationTree } from 'vuex';
import { State } from '@/types/store/scopes';

export const state: State = {
  card: {},
  loading: false,
};

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

export const mutations: MutationTree<State> = {
  notificationCardLoading(state, loading: boolean) {
    state.loading = loading;
  },
};
