UNPKG

contiago-toolbar

Version:

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

20 lines (16 loc) 975 B
import { LOAD_TOOLBAR_OUTPUT_CONFIG, LOAD_TOOLBAR_OUTPUT_CONFIG_ERROR, LOAD_TOOLBAR_OUTPUT_CONFIG_SUCCESS, SET_TOOLBAR_POSITION, GET_RANDOM_ARTICLES, GET_RANDOM_ARTICLES_SUCCESS, GET_RANDOM_ARTICLES_ERROR, } from './constants'; export const loadToolbarOutputConfig = () => ({ type: LOAD_TOOLBAR_OUTPUT_CONFIG }); export const loadToolbarOutputConfigSuccess = (config) => ({ type: LOAD_TOOLBAR_OUTPUT_CONFIG_SUCCESS, payload: config }); export const loadToolbarOutputConfigError = (error) => ({ type: LOAD_TOOLBAR_OUTPUT_CONFIG_ERROR, payload: error }); export const setToolbarPosition = (position) => ({ type: SET_TOOLBAR_POSITION, payload: position }); export const getRandomArticles = () => ({ type: GET_RANDOM_ARTICLES }); export const getRandomArticlesSuccess = (articles) => ({ type: GET_RANDOM_ARTICLES_SUCCESS, payload: articles }); export const getRandomArticlesError = (error) => ({ type: GET_RANDOM_ARTICLES_ERROR, payload: error });