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

20 lines
526 B
TypeScript
Raw Normal View History

// 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';
import type { Store } from 'redux';
2019-11-07 21:36:16 +00:00
import type { ExternalProps } from '../smart/ShortcutGuideModal';
2019-11-07 21:36:16 +00:00
import { SmartShortcutGuideModal } from '../smart/ShortcutGuideModal';
export const createShortcutGuideModal = (
store: Store,
props: ExternalProps
): React.ReactElement => (
2019-11-07 21:36:16 +00:00
<Provider store={store}>
<SmartShortcutGuideModal {...props} />
2019-11-07 21:36:16 +00:00
</Provider>
);