You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reducer.ts 629B

1234567891011121314151617181920
  1. import ReducerRegistry from '../base/redux/ReducerRegistry';
  2. import { set } from '../base/redux/functions';
  3. import { SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID } from './actionTypes';
  4. export interface INoAudioSignalState {
  5. noAudioSignalNotificationUid?: string;
  6. }
  7. /**
  8. * Reduces the redux actions of the feature no audio signal.
  9. */
  10. ReducerRegistry.register<INoAudioSignalState>('features/no-audio-signal', (state = {}, action): INoAudioSignalState => {
  11. switch (action.type) {
  12. case SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID:
  13. return set(state, 'noAudioSignalNotificationUid', action.uid);
  14. }
  15. return state;
  16. });