15 lines
371 B
TypeScript
15 lines
371 B
TypeScript
|
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>
|
||
|
);
|