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 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, channelSearch, input, messages, modals, privateChats, search, servers, settings, tab, ui }); }