import borrowDevice from '../../../src/pages/deviceBorrow/borrowDevice.js'
const state = {
  // e.g. needRefresh: true,
  borrowDeviceLogic: new borrowDevice()
}

const getters = {
  /**
   * e.g. function (state, getters) {
   *  return someValue
   * }
   */
}

const actions = {
  /**
   * e.g. function({commit, state}, {params}) {
   * }
   */
}

const mutations = {
  /**
   * e.g. function(state, {value}) {
   * }
   */
  setBorrowDeviceLogic (state, value) {
    state.borrowDeviceLogic = value
  },
  clearBorrowDeviceLogic (state, value) {
    state.borrowDeviceLogic = null
  }

}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
