jiti-meet/react/features/mobile/full-screen/reducer.ts

20 lines
476 B
TypeScript
Raw Normal View History

import ReducerRegistry from '../../base/redux/ReducerRegistry';
import { _SET_IMMERSIVE_LISTENER } from './actionTypes';
export interface IFullScreenState {
listener?: Function;
}
2022-09-05 09:05:07 +00:00
ReducerRegistry.register<IFullScreenState>('features/full-screen', (state = {}, action): IFullScreenState => {
switch (action.type) {
case _SET_IMMERSIVE_LISTENER:
return {
...state,
listener: action.listener
};
}
return state;
});