jiti-meet/react/features/shared-video/reducer.js

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;
}
});