UNPKG

sp-boilerplate

Version:
11 lines (10 loc) 339 B
import * as actions from './actions' export const getContent = (doc, localeId) => { return (dispatch) => import(`@appDocs/${doc}/${localeId}.md`) .then(data => ( dispatch(actions.getContent(doc, data)) )) .catch(error => ( dispatch(actions.getContent(doc, error)) )) }