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

18 lines
454 B
TypeScript
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2020-10-30 17:52:21 +00:00
import React from 'react';
import { Store } from 'redux';
import { Provider } from 'react-redux';
import { SmartConversationHeader, OwnProps } from '../smart/ConversationHeader';
export const createConversationHeader = (
store: Store,
props: OwnProps
): React.ReactElement => (
<Provider store={store}>
<SmartConversationHeader {...props} />
</Provider>
);