2018-02-19 22:52:21 +00:00
|
|
|
// @flow
|
|
|
|
|
2018-02-01 16:02:07 +00:00
|
|
|
import { ReducerRegistry } from '../../base/redux';
|
|
|
|
|
2018-02-19 22:52:21 +00:00
|
|
|
import { _SET_EMITTER_SUBSCRIPTIONS } from './actionTypes';
|
2018-02-01 16:02:07 +00:00
|
|
|
|
|
|
|
ReducerRegistry.register('features/pip', (state = {}, action) => {
|
|
|
|
switch (action.type) {
|
2018-02-19 22:52:21 +00:00
|
|
|
case _SET_EMITTER_SUBSCRIPTIONS:
|
2018-02-01 16:02:07 +00:00
|
|
|
return {
|
|
|
|
...state,
|
2018-02-19 22:52:21 +00:00
|
|
|
emitterSubscriptions: action.emitterSubscriptions
|
2018-02-01 16:02:07 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
return state;
|
|
|
|
});
|