signal-desktop/ts/state/reducer.ts

45 lines
1.4 KiB
TypeScript
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2019-01-14 21:49:58 +00:00
import { combineReducers } from 'redux';
import { reducer as accounts } from './ducks/accounts';
2021-06-14 19:01:00 +00:00
import { reducer as app } from './ducks/app';
import { reducer as audioPlayer } from './ducks/audioPlayer';
import { reducer as calling } from './ducks/calling';
2021-06-25 16:08:16 +00:00
import { reducer as composer } from './ducks/composer';
import { reducer as conversations } from './ducks/conversations';
import { reducer as emojis } from './ducks/emojis';
import { reducer as expiration } from './ducks/expiration';
2021-05-28 16:15:17 +00:00
import { reducer as globalModals } from './ducks/globalModals';
import { reducer as items } from './ducks/items';
2021-04-27 22:35:35 +00:00
import { reducer as linkPreviews } from './ducks/linkPreviews';
import { reducer as network } from './ducks/network';
import { reducer as safetyNumber } from './ducks/safetyNumber';
import { reducer as search } from './ducks/search';
import { reducer as stickers } from './ducks/stickers';
import { reducer as updates } from './ducks/updates';
import { reducer as user } from './ducks/user';
2019-01-14 21:49:58 +00:00
export const reducer = combineReducers({
accounts,
2021-06-14 19:01:00 +00:00
app,
audioPlayer,
2020-06-04 18:16:19 +00:00
calling,
2021-06-25 16:08:16 +00:00
composer,
2019-01-14 21:49:58 +00:00
conversations,
2019-05-24 23:58:27 +00:00
emojis,
expiration,
2021-05-28 16:15:17 +00:00
globalModals,
items,
2021-04-27 22:35:35 +00:00
linkPreviews,
network,
safetyNumber,
search,
stickers,
updates,
2019-01-14 21:49:58 +00:00
user,
});
2019-01-14 21:49:58 +00:00
export type StateType = ReturnType<typeof reducer>;