import * as types from '../../types' // import actions from '../../actions' // import { session } from '../../session' import { api, post, pad, preloadImage } from '../../util' export const loadPeaks = (asdf) => dispatch => { api(dispatch, types.peaks, 'peaks', '/static/data_store/peaks/peaks.json') } export const loadText = (asdf) => dispatch => { api(dispatch, types.text, 'text', '/static/data_store/peaks/text.txt') } export const updateText = text => dispatch => { dispatch({ type: types.text.loaded, data: text }) }