2022-08-26 09:54:16 +00:00
|
|
|
import ReducerRegistry from '../../base/redux/ReducerRegistry';
|
2018-02-07 13:34:40 +00:00
|
|
|
|
|
|
|
import { _SET_IMMERSIVE_LISTENER } from './actionTypes';
|
|
|
|
|
2022-08-26 09:54:16 +00:00
|
|
|
export interface IFullScreenState {
|
|
|
|
listener?: Function;
|
|
|
|
}
|
|
|
|
|
2022-09-05 09:05:07 +00:00
|
|
|
ReducerRegistry.register<IFullScreenState>('features/full-screen', (state = {}, action): IFullScreenState => {
|
2018-02-14 18:28:22 +00:00
|
|
|
switch (action.type) {
|
|
|
|
case _SET_IMMERSIVE_LISTENER:
|
|
|
|
return {
|
|
|
|
...state,
|
|
|
|
listener: action.listener
|
|
|
|
};
|
|
|
|
}
|
2018-02-07 13:34:40 +00:00
|
|
|
|
2018-02-14 18:28:22 +00:00
|
|
|
return state;
|
|
|
|
});
|