import * as types from 'app/types' import { api, post, pad, preloadImage } from 'app/utils' 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 }) }