signal-desktop/ts/state/actions.ts
2021-09-29 13:23:06 -07:00

64 lines
1.7 KiB
TypeScript

// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { actions as accounts } from './ducks/accounts';
import { actions as app } from './ducks/app';
import { actions as audioPlayer } from './ducks/audioPlayer';
import { actions as audioRecorder } from './ducks/audioRecorder';
import { actions as calling } from './ducks/calling';
import { actions as composer } from './ducks/composer';
import { actions as conversations } from './ducks/conversations';
import { actions as emojis } from './ducks/emojis';
import { actions as expiration } from './ducks/expiration';
import { actions as globalModals } from './ducks/globalModals';
import { actions as items } from './ducks/items';
import { actions as linkPreviews } from './ducks/linkPreviews';
import { actions as network } from './ducks/network';
import { actions as safetyNumber } from './ducks/safetyNumber';
import { actions as search } from './ducks/search';
import { actions as stickers } from './ducks/stickers';
import { actions as updates } from './ducks/updates';
import { actions as user } from './ducks/user';
import { ReduxActions } from './types';
export const actionCreators: ReduxActions = {
accounts,
app,
audioPlayer,
audioRecorder,
calling,
composer,
conversations,
emojis,
expiration,
globalModals,
items,
linkPreviews,
network,
safetyNumber,
search,
stickers,
updates,
user,
};
export const mapDispatchToProps = {
...accounts,
...app,
...audioPlayer,
...audioRecorder,
...calling,
...composer,
...conversations,
...emojis,
...expiration,
...globalModals,
...items,
...linkPreviews,
...network,
...safetyNumber,
...search,
...stickers,
...updates,
...user,
};