Spam Reporting UI changes
This commit is contained in:
parent
e031d136a1
commit
8387f938eb
88 changed files with 2711 additions and 807 deletions
23
ts/state/selectors/audioRecorder.ts
Normal file
23
ts/state/selectors/audioRecorder.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { createSelector } from 'reselect';
|
||||
import type { StateType } from '../reducer';
|
||||
import type { AudioRecorderStateType } from '../ducks/audioRecorder';
|
||||
|
||||
export function getAudioRecorder(state: StateType): AudioRecorderStateType {
|
||||
return state.audioRecorder;
|
||||
}
|
||||
|
||||
export const getErrorDialogAudioRecorderType = createSelector(
|
||||
getAudioRecorder,
|
||||
audioRecorder => {
|
||||
return audioRecorder.errorDialogAudioRecorderType;
|
||||
}
|
||||
);
|
||||
|
||||
export const getRecordingState = createSelector(
|
||||
getAudioRecorder,
|
||||
audioRecorder => {
|
||||
return audioRecorder.recordingState;
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue