import * as actions from './actions'
import getters from './gettters'
import mutations from './mutations'
import { I_TOKEN_REDEMPTION_FORM } from '@/store/utils/localStorageKeys'

const state = {
  redemptionCountryId: false,
  redemptionFormData: JSON.parse(sessionStorage.getItem(I_TOKEN_REDEMPTION_FORM)) || { cart: [], shippingInfo: {} },
}

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