mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 05:38:12 +00:00
24 lines
747 B
TypeScript
24 lines
747 B
TypeScript
// Copyright 2019 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import React, { memo } from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
import { ShortcutGuideModal } from '../../components/ShortcutGuideModal.js';
|
|
import { getIntl, getPlatform } from '../selectors/user.js';
|
|
import { useGlobalModalActions } from '../ducks/globalModals.js';
|
|
|
|
export const SmartShortcutGuideModal = memo(function SmartShortcutGuideModal() {
|
|
const i18n = useSelector(getIntl);
|
|
const platform = useSelector(getPlatform);
|
|
|
|
const { closeShortcutGuideModal } = useGlobalModalActions();
|
|
|
|
return (
|
|
<ShortcutGuideModal
|
|
platform={platform}
|
|
closeShortcutGuideModal={closeShortcutGuideModal}
|
|
i18n={i18n}
|
|
/>
|
|
);
|
|
});
|