import * as actions from './actions'
import getters from './getters'
import mutations from './mutations'
import * as L from '@/store/utils/localStorageKeys'

const state = {
  logs: {},
  errors: {},
  notices: JSON.parse(localStorage.getItem(L.NOTICESS_RECIVED)) || [
    {
      id: Date.now(),
      countryId: 5,
      message: 'Notices.taiwanBankClosed',
      endTime: '2018-10-14T06:15:00Z',
    },
  ],
  noticesRead: JSON.parse(localStorage.getItem(L.NOTICESS_READ)) || [],
  showNotice: false,
  showiSPPopup: false,
  isAnnouncementSeen: false,
}

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