jiti-meet/react/features/blur/reducer.js

27 lines
472 B
JavaScript
Raw Normal View History

2019-06-28 17:18:47 +00:00
// @flow
import { ReducerRegistry } from '../base/redux';
import { BLUR_ENABLED, BLUR_DISABLED } from './actionTypes';
ReducerRegistry.register('features/blur', (state = {}, action) => {
switch (action.type) {
case BLUR_ENABLED: {
return {
...state,
blurEnabled: true
};
}
case BLUR_DISABLED: {
return {
...state,
blurEnabled: false
};
}
}
return state;
});