import * as types from '../../types' // import { session, getDefault, getDefaultInt } from '../../session' const initialState = { peaks: { loading: true }, text: { loading: true }, } export default function siteReducer(state = initialState, action) { // console.log(action.type, action) // console.log(action.data) switch (action.type) { case types.peaks.loaded: return { ...state, peaks: action.data, } case types.text.loaded: return { ...state, text: action.data, } default: return state } }