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 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
|
|
|
|
2017-05-26 06:20:00 +00:00
|
|
|
export * from './selectors';
|
|
|
|
export const getRouter = state => state.router;
|
|
|
|
|
2017-05-07 20:19:15 +00:00
|
|
|
export default function createReducer(router) {
|
|
|
|
return combineReducers({
|
|
|
|
router,
|
2017-06-06 23:03:35 +00:00
|
|
|
app,
|
2017-05-07 20:19:15 +00:00
|
|
|
channels,
|
|
|
|
input,
|
|
|
|
messages,
|
|
|
|
privateChats,
|
|
|
|
search,
|
|
|
|
servers,
|
|
|
|
settings,
|
|
|
|
tab,
|
|
|
|
ui
|
|
|
|
});
|
|
|
|
}
|