/* eslint-disable no-param-reassign */

const state = {
  showPhotoModal: false,
  showPasswordModal: false,
};

const getters = {
  photoModal: currentState => currentState.showPhotoModal,
};

const mutations = {
  openPhotoModal(currentState) {
    currentState.showPhotoModal = true;
  },
  hidePhotoModal(currentState) {
    currentState.showPhotoModal = false;
  },
  openPasswordModal(currentState) {
    currentState.showPasswordModal = true;
  },
  hidePasswordModal(currentState) {
    currentState.showPasswordModal = false;
  },
};

const actions = {

};

export {
  state,
  getters,
  mutations,
  actions,
};
