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';
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { Store } from 'redux';
|
2021-08-05 12:35:33 +00:00
|
|
|
|
2021-10-26 19:15: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>
|
|
|
|
);
|