dispatch/client/js/state/index.js

35 lines
760 B
JavaScript
Raw Normal View History

2015-12-28 23:34:32 +00:00
import { combineReducers } from 'redux';
2017-06-06 23:03:35 +00:00
import app from './app';
2015-12-28 23:34:32 +00:00
import channels from './channels';
2019-01-23 06:34:39 +00:00
import channelSearch from './channelSearch';
2015-12-28 23:34:32 +00:00
import input from './input';
import messages from './messages';
import modals from './modals';
2020-06-15 08:58:51 +00:00
import networks from './networks';
2015-12-28 23:34:32 +00:00
import privateChats from './privateChats';
import search from './search';
2016-01-11 20:04:57 +00:00
import settings from './settings';
2015-12-28 23:34:32 +00:00
import tab from './tab';
2016-01-11 22:31:06 +00:00
import ui from './ui';
2015-12-28 23:34:32 +00:00
export * from './selectors';
export const getRouter = state => state.router;
export default function createReducer(router) {
return combineReducers({
router,
2017-06-06 23:03:35 +00:00
app,
channels,
2019-01-23 06:34:39 +00:00
channelSearch,
input,
messages,
modals,
2020-06-15 08:58:51 +00:00
networks,
privateChats,
search,
settings,
tab,
ui
});
}