theluyuan 38ba663466
Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
init
2025-09-02 14:49:16 +08:00

22 lines
510 B
TypeScript

import ReducerRegistry from '../base/redux/ReducerRegistry';
import { SIP_GW_AVAILABILITY_CHANGED } from './actionTypes';
export interface IVideoSipGW {
status?: string;
}
ReducerRegistry.register<IVideoSipGW>(
'features/videosipgw', (state = {}, action): IVideoSipGW => {
switch (action.type) {
case SIP_GW_AVAILABILITY_CHANGED: {
return {
...state,
status: action.status
};
}
}
return state;
});