26 lines
506 B
TypeScript
26 lines
506 B
TypeScript
|
/**
|
||
|
* External dependencies
|
||
|
*/
|
||
|
|
||
|
import { registerStore } from '@wordpress/data';
|
||
|
import { controls } from '@wordpress/data-controls';
|
||
|
|
||
|
/**
|
||
|
* Internal dependencies
|
||
|
*/
|
||
|
import { STORE_NAME } from './constants';
|
||
|
import * as selectors from './selectors';
|
||
|
import * as actions from './actions';
|
||
|
import * as resolvers from './resolvers';
|
||
|
import reducer from './reducer';
|
||
|
|
||
|
registerStore( STORE_NAME, {
|
||
|
reducer,
|
||
|
actions,
|
||
|
controls,
|
||
|
selectors,
|
||
|
resolvers,
|
||
|
} );
|
||
|
|
||
|
export const COUNTRIES_STORE_NAME = STORE_NAME;
|