pagraphcontrol/reducers/icons.js
2018-11-09 00:51:38 +03:00

20 lines
361 B
JavaScript

const {
merge,
} = require('ramda');
const { handleActions } = require('redux-actions');
const { icons } = require('../actions');
const initialState = {};
const reducer = handleActions({
[icons.getIconPath + '_FULFILLED']: (state, { payload, meta }) => merge(state, { [meta]: payload }),
}, initialState);
module.exports = {
initialState,
reducer,
};