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

const state = {
  iTokenCart: JSON.parse(sessionStorage.getItem(ESHOP_I_TOKEN_CART)) || [],
  isRedeemLater: JSON.parse(sessionStorage.getItem(ESHOP_REDEEM_LATER_STATUS)) || false,
}

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