mirrored_repositories/daruma-frontend/lib
import 'package:daruma/redux/index.dart';
import 'package:daruma/redux/state.dart';
import 'package:redux/redux.dart';
import 'package:redux_thunk/redux_thunk.dart';

Store<AppState> createStore() {
  return Store(
    mainReducer,
    middleware: createMiddleware(),
    initialState: AppState.initial(),
  );
}

List<Middleware<AppState>> createMiddleware() =>
    <Middleware<AppState>>[thunkMiddleware, middleware];
