export const actions = { SET_VALUE: 'SET_VALUE', INCREMENT_VALUE: 'INCREMENT_VALUE', LIST_PUSH: 'LIST_PUSH', LIST_POP: 'LIST_POP', LIST_UP: 'LIST_UP', CLEAR: 'CLEAR', INIT: 'INIT', }; export const createInit = ({ id, value }) => ({ type: actions.INIT, id, value }); export const createInc = ({ id, key }) => ({ type: actions.INCREMENT_VALUE, id, key }); export const createSet = ({ id, key, value }) => ({ type: actions.SET_VALUE, id, key, value }); export const createPush = ({ id, key, value }) => ({ type: actions.LIST_PUSH, id, key, value }); export const createPop = ({ id, key, value }) => ({ type: actions.LIST_POP, id, key, value }); export const createUp = ({ id, key, value, newValue }) => ({ type: actions.LIST_UP, id, key, value, newValue }); export const createClear = ({ id }) => ({ type: actions.CLEAR, id }); export default actions;