2021-03-24 22:06:12 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { ReactElement } from 'react';
|
|
|
|
import React from 'react';
|
2021-03-24 22:06:12 +00:00
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { Store } from 'redux';
|
2021-03-24 22:06:12 +00:00
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { OwnProps } from '../smart/MessageDetail';
|
|
|
|
import { SmartMessageDetail } from '../smart/MessageDetail';
|
2021-03-24 22:06:12 +00:00
|
|
|
|
|
|
|
export const createMessageDetail = (
|
|
|
|
store: Store,
|
|
|
|
props: OwnProps
|
|
|
|
): ReactElement => (
|
|
|
|
<Provider store={store}>
|
|
|
|
<SmartMessageDetail {...props} />
|
|
|
|
</Provider>
|
|
|
|
);
|