Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

reducer.ts 636B

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