import { action } from 'typesafe-actions' ; import { Constants , Results } from './types' ; export function setResults ( results ) { return action ( Constants . SET_RESULTS , { results , } ) ; } export function addToResultsHistory ( results ) { return action ( Constants . ADD_TO_RESULTS_HISTORY , { results , } ) ; } export function setResultsHistory ( resultsHistory ) { return action ( Constants . SET_RESULTS_HISTORY , { resultsHistory , } ) ; } export function deleteResultsHistoryElement ( id ) { return action ( Constants . DELETE_RESULTS_HISTORY_ELEMENT , { id , } ) ; } export function setLoadingValue ( value ) { return action ( Constants . SET_LOADING_VALUE , { value , } ) ; }