jiti-meet/react/features/videosipgw/reducer.ts

22 lines
510 B
TypeScript
Raw Normal View History

2022-09-01 11:00:49 +00:00
import ReducerRegistry from '../base/redux/ReducerRegistry';
import { SIP_GW_AVAILABILITY_CHANGED } from './actionTypes';
2022-09-01 11:00:49 +00:00
export interface IVideoSipGW {
status?: string;
}
2022-09-05 09:05:07 +00:00
ReducerRegistry.register<IVideoSipGW>(
'features/videosipgw', (state = {}, action): IVideoSipGW => {
switch (action.type) {
case SIP_GW_AVAILABILITY_CHANGED: {
return {
...state,
status: action.status
};
}
}
return state;
});