actions.ts
3 years ago
index.ts
3 years ago
reducer.ts
3 years ago
selectors.ts
3 years ago
types.ts
3 years ago
index.ts
17 lines
| 1 | import { createReduxStore, register } from '@wordpress/data'; |
| 2 | import actions from './actions'; |
| 3 | import reducer from './reducer'; |
| 4 | import selectors from './selectors'; |
| 5 | |
| 6 | export const JETPACK_MEDIA_STORE = 'jetpack-media'; |
| 7 | |
| 8 | const storeConfig = { |
| 9 | actions, |
| 10 | reducer, |
| 11 | selectors, |
| 12 | }; |
| 13 | |
| 14 | const store = createReduxStore( JETPACK_MEDIA_STORE, storeConfig ); |
| 15 | |
| 16 | register( store ); |
| 17 |