maccounter
18 строк · 614.0 Байт
1import appReducer from '@store/app-store/appReducer'
2import profileReducer from '@store/profile-store/profileReducer'
3import { combineReducers, createStore } from 'redux'
4import expensesReducer from '@store/expenses-store/expensesReducer'
5import sidebarReducer from '@store/sidebar-store/sidebarReducer'
6
7const reducers = combineReducers({
8expenses: expensesReducer,
9sidebar: sidebarReducer,
10app: appReducer,
11profile: profileReducer,
12})
13const store = createStore(reducers)
14
15export type State = ReturnType<typeof store.getState>
16export type AppDispatch = typeof store.dispatch
17
18export default store
19