2018-03-27 00:54:30 -05:00

20 lines
450 B
JavaScript

import { ReducerRegistry } from '../base/redux';
import { SET_SHARED_VIDEO_STATUS } from './actionTypes';
/**
* Reduces the Redux actions of the feature features/shared-video.
*/
ReducerRegistry.register('features/shared-video', (state = {}, action) => {
switch (action.type) {
case SET_SHARED_VIDEO_STATUS:
return {
...state,
status: action.status
};
default:
return state;
}
});