dispatch/client/js/state/index.js
2019-01-05 07:08:34 +01:00

33 lines
693 B
JavaScript

import { combineReducers } from 'redux';
import app from './app';
import channels from './channels';
import input from './input';
import messages from './messages';
import modals from './modals';
import privateChats from './privateChats';
import search from './search';
import servers from './servers';
import settings from './settings';
import tab from './tab';
import ui from './ui';
export * from './selectors';
export const getRouter = state => state.router;
export default function createReducer(router) {
return combineReducers({
router,
app,
channels,
input,
messages,
modals,
privateChats,
search,
servers,
settings,
tab,
ui
});
}