import * as actions from './actions'
import getters from './getters'
import mutations from './mutations'
import { ESHOP_CW_INFO, ESHOP_CART_SALES_CW_ID } from '@/store/utils/localStorageKeys'

const state = {
  cwInfo: JSON.parse(localStorage.getItem(ESHOP_CW_INFO)) || { currentCwLog: null },
  cartSalesCwId: JSON.parse(localStorage.getItem(ESHOP_CART_SALES_CW_ID)) || null,
}

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