{"size": 854, "ext": "js", "max_stars_repo_path": "client/store/index.js", "max_stars_repo_name": "real-fake-spaceshop/real-fake-spaceshop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/store/index.js", "max_issues_repo_name": "real-fake-spaceshop/real-fake-spaceshop", "max_issues_repo_issues_event_min_datetime": "2019-01-08T21:31:24.000Z", "max_issues_repo_issues_event_max_datetime": "2019-01-16T18:09:48.000Z", "max_forks_repo_path": "client/store/index.js", "max_forks_repo_name": "real-fake-spaceshops/real-fake-spaceshops", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 65, "max_forks_count": null, "avg_line_length": 29.4482758621, "max_line_length": 68, "alphanum_fraction": 0.7576112412}
import {createStore, combineReducers, applyMiddleware} from 'redux';
import createLogger from 'redux-logger';
import thunkMiddleware from 'redux-thunk';
import {composeWithDevTools} from 'redux-devtools-extension';
import user from './user';
import singleProduct from './singleProduct';
import allProducts from './allProducts';
import snacks from './snacks';
import stripe from './stripe';

const reducer = combineReducers({
	user: user,
	singleProduct: singleProduct,
	allProducts: allProducts,
	snacks: snacks,
	stripe: stripe
});
const middleware = composeWithDevTools(
	applyMiddleware(thunkMiddleware, createLogger({collapsed: true}))
);
const store = createStore(reducer, middleware);

export default store;
export * from './user';
export * from './singleProduct';
export * from './allProducts';
export * from './snacks';
export * from './stripe';
