2022-02-25 23:59:43 +00:00
|
|
|
// Copyright 2019-2022 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2019-11-07 21:36:16 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { Store } from 'redux';
|
2019-11-07 21:36:16 +00:00
|
|
|
|
2022-02-25 23:59:43 +00:00
|
|
|
import type { ExternalProps } from '../smart/ShortcutGuideModal';
|
2019-11-07 21:36:16 +00:00
|
|
|
import { SmartShortcutGuideModal } from '../smart/ShortcutGuideModal';
|
|
|
|
|
2020-09-14 21:56:35 +00:00
|
|
|
export const createShortcutGuideModal = (
|
|
|
|
store: Store,
|
2022-02-25 23:59:43 +00:00
|
|
|
props: ExternalProps
|
2020-09-14 21:56:35 +00:00
|
|
|
): React.ReactElement => (
|
2019-11-07 21:36:16 +00:00
|
|
|
<Provider store={store}>
|
2022-02-25 23:59:43 +00:00
|
|
|
<SmartShortcutGuideModal {...props} />
|
2019-11-07 21:36:16 +00:00
|
|
|
</Provider>
|
|
|
|
);
|