UNPKG

contiago-toolbar

Version:

One of the options for outputting content from contiago xml-server

12 lines (10 loc) 479 B
import { GET_ARTICLE, GET_ARTICLE_SUCCESS, GET_ARTICLE_ERROR, SET_PREVIEW_IMAGE, } from './constants'; export const onGetArticle = (articleId) => ({ type: GET_ARTICLE, payload: articleId }); export const onGetArticleSuccess = (article) => ({ type: GET_ARTICLE_SUCCESS, payload: article }); export const onGetArticleError = (error) => ({ type: GET_ARTICLE_ERROR, payload: error }); export const setPreviewImage = (image) => ({ type: SET_PREVIEW_IMAGE, payload: image });