| 1 |
/** |
| 2 |
* WordPress dependencies |
| 3 |
*/ |
| 4 |
import { createReduxStore } from '@wordpress/data'; |
| 5 |
|
| 6 |
/** |
| 7 |
* Internal dependencies |
| 8 |
*/ |
| 9 |
import actions from './actions'; |
| 10 |
import controls from './controls'; |
| 11 |
import reducer from './reducer'; |
| 12 |
import resolvers from './resolvers'; |
| 13 |
import selectors from './selectors'; |
| 14 |
|
| 15 |
export const DEFAULT_STATE = { |
| 16 |
isRegeneratingAudio: false, |
| 17 |
playerStyles: [], |
| 18 |
languages: [], |
| 19 |
settings: {}, |
| 20 |
voices: [], |
| 21 |
}; |
| 22 |
|
| 23 |
const store = { |
| 24 |
reducer, |
| 25 |
actions, |
| 26 |
selectors, |
| 27 |
controls, |
| 28 |
resolvers, |
| 29 |
}; |
| 30 |
|
| 31 |
export default createReduxStore( 'beyondwords/settings', store ); |
| 32 |
|