import * as actions from './actions'
import getters from './getters'
import mutations from './mutations'
import { LAYOUT_BLOCKS_PREFIX } from '../../utils/localStorageKeys'

const state = {
  layouts: JSON.parse(localStorage.getItem(LAYOUT_BLOCKS_PREFIX)) || {},
}

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