dispatch/client/js/state/index.js
2020-06-15 10:58:51 +02:00

35 lines
760 B
JavaScript

import { combineReducers } from 'redux';
import app from './app';
import channels from './channels';
import channelSearch from './channelSearch';
import input from './input';
import messages from './messages';
import modals from './modals';
import networks from './networks';
import privateChats from './privateChats';
import search from './search';
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,
channelSearch,
input,
messages,
modals,
networks,
privateChats,
search,
settings,
tab,
ui
});
}