mon-entreprise/source/actions.js

25 lines
519 B
JavaScript
Raw Normal View History

/* @flow */
import type {
ResetSimulationAction,
LoadPreviousSimulationAction
} from './types/Actions'
export function resetSimulation(): ResetSimulationAction {
return {
type: 'RESET_SIMULATION'
}
}
// $FlowFixMe
export function setExample(name, situation, dottedName) {
return { type: 'SET_EXAMPLE', name, situation, dottedName }
}
export function loadPreviousSimulation(): LoadPreviousSimulationAction {
return {
type: 'LOAD_PREVIOUS_SIMULATION'
}
}
export const EXPLAIN_VARIABLE = 'EXPLAIN_VARIABLE'