mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-09-28 16:09:49 +01:00
22 lines
687 B
TypeScript
22 lines
687 B
TypeScript
// Copyright 2026 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
import { memo } from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
|
|
import { getIntl } from '../selectors/user.std.ts';
|
|
import { useGlobalModalActions } from '../ducks/globalModals.preload.ts';
|
|
import { PinChangeModal } from '../../components/PinChangeModal.dom.tsx';
|
|
|
|
export const SmartPinChangeModal = memo(function SmartPinChangeModal() {
|
|
const i18n = useSelector(getIntl);
|
|
const { hidePinChangeModal, submitPinChangeModal } = useGlobalModalActions();
|
|
|
|
return (
|
|
<PinChangeModal
|
|
i18n={i18n}
|
|
onCancel={hidePinChangeModal}
|
|
onSubmit={submitPinChangeModal}
|
|
/>
|
|
);
|
|
});
|