dispatch/client/js/state/index.js

33 lines
693 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';
import input from './input';
import messages from './messages';
import modals from './modals';
2015-12-28 23:34:32 +00:00
import privateChats from './privateChats';
import search from './search';
import servers from './servers';
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,
input,
messages,
modals,
privateChats,
search,
servers,
settings,
tab,
ui
});
}