70 lines
2.3 KiB
TypeScript
70 lines
2.3 KiB
TypeScript
// Copyright 2019 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { combineReducers } from 'redux';
|
|
|
|
import { reducer as accounts } from './ducks/accounts';
|
|
import { reducer as app } from './ducks/app';
|
|
import { reducer as audioPlayer } from './ducks/audioPlayer';
|
|
import { reducer as audioRecorder } from './ducks/audioRecorder';
|
|
import { reducer as badges } from './ducks/badges';
|
|
import { reducer as calling } from './ducks/calling';
|
|
import { reducer as callHistory } from './ducks/callHistory';
|
|
import { reducer as composer } from './ducks/composer';
|
|
import { reducer as conversations } from './ducks/conversations';
|
|
import { reducer as crashReports } from './ducks/crashReports';
|
|
import { reducer as emojis } from './ducks/emojis';
|
|
import { reducer as expiration } from './ducks/expiration';
|
|
import { reducer as globalModals } from './ducks/globalModals';
|
|
import { reducer as inbox } from './ducks/inbox';
|
|
import { reducer as items } from './ducks/items';
|
|
import { reducer as lightbox } from './ducks/lightbox';
|
|
import { reducer as linkPreviews } from './ducks/linkPreviews';
|
|
import { reducer as mediaGallery } from './ducks/mediaGallery';
|
|
import { reducer as nav } from './ducks/nav';
|
|
import { reducer as network } from './ducks/network';
|
|
import { reducer as preferredReactions } from './ducks/preferredReactions';
|
|
import { reducer as safetyNumber } from './ducks/safetyNumber';
|
|
import { reducer as search } from './ducks/search';
|
|
import { reducer as stickers } from './ducks/stickers';
|
|
import { reducer as stories } from './ducks/stories';
|
|
import { reducer as storyDistributionLists } from './ducks/storyDistributionLists';
|
|
import { reducer as toast } from './ducks/toast';
|
|
import { reducer as updates } from './ducks/updates';
|
|
import { reducer as user } from './ducks/user';
|
|
import { reducer as username } from './ducks/username';
|
|
|
|
export const reducer = combineReducers({
|
|
accounts,
|
|
app,
|
|
audioPlayer,
|
|
audioRecorder,
|
|
badges,
|
|
calling,
|
|
callHistory,
|
|
composer,
|
|
conversations,
|
|
crashReports,
|
|
emojis,
|
|
expiration,
|
|
globalModals,
|
|
inbox,
|
|
items,
|
|
lightbox,
|
|
linkPreviews,
|
|
mediaGallery,
|
|
nav,
|
|
network,
|
|
preferredReactions,
|
|
safetyNumber,
|
|
search,
|
|
stickers,
|
|
stories,
|
|
storyDistributionLists,
|
|
toast,
|
|
updates,
|
|
user,
|
|
username,
|
|
});
|
|
|
|
export type StateType = ReturnType<typeof reducer>;
|