File size: 328 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { combineReducers } from 'redux';
import * as types from '../action-types';
export const bySite = ( state = {}, { type, siteId, suggestions } ) => {
if ( types.SUGGESTIONS_STORE === type ) {
return {
...state,
[ siteId ]: suggestions,
};
}
return state;
};
export default combineReducers( {
bySite,
} );
|