PluginProbe
BeyondWords – AI audio for publishers / 4.2.4
BeyondWords – AI audio for publishers v4.2.4
7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.7.0 All 43 releases
speechkit / src / Core / Settings / store / reducer.js

reducer.js in BeyondWords – AI audio for publishers 4.2.4, at src/Core/Settings/store/reducer.js

39 lines 644 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Internal dependencies
3 */
4 import { DEFAULT_STATE } from './';
5
6 const reducer = ( state = DEFAULT_STATE, action ) => {
7 switch ( action.type ) {
8 case 'SET_IS_REGENERATING_AUDIO':
9 return {
10 ...state,
11 isRegeneratingAudio: action.value,
12 };
13 case 'SET_LANGUAGES':
14 return {
15 ...state,
16 languages: action.value,
17 };
18 case 'SET_PLAYER_STYLES':
19 return {
20 ...state,
21 playerStyles: action.value,
22 };
23 case 'SET_SETTINGS':
24 return {
25 ...state,
26 settings: action.value,
27 };
28 case 'SET_VOICES':
29 return {
30 ...state,
31 voices: action.value,
32 };
33 }
34
35 return state;
36 };
37
38 export default reducer;
39