signal-desktop/ts/state/roots/createConversationNotificationsSettings.tsx

20 lines
591 B
TypeScript
Raw Normal View History

2021-08-05 12:35:33 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import { Provider } from 'react-redux';
import type { Store } from 'redux';
2021-08-05 12:35:33 +00:00
import type { OwnProps } from '../smart/ConversationNotificationsSettings';
import { SmartConversationNotificationsSettings } from '../smart/ConversationNotificationsSettings';
2021-08-05 12:35:33 +00:00
export const createConversationNotificationsSettings = (
store: Store,
props: OwnProps
): React.ReactElement => (
<Provider store={store}>
<SmartConversationNotificationsSettings {...props} />
</Provider>
);