/**
* External dependencies.
*/
import { createReduxStore } from '@wordpress/data';
/**
* Internal dependencies.
*/
import reducer from './reducer';
import actions from './actions';
import selectors from './selectors';
import controls from './controls';
import resolvers from './resolvers';
import { IJobs } from './interfaces';
export const jobDefaultState: IJobs = {
jobs: [],
loadingJobs: true,
totalPage: 0,
total: 0,
filters: {},
};
const jobStore = createReduxStore('wp-react/jobs', {
reducer,
actions,
selectors,
controls,
resolvers,
});
export default jobStore;
|