Files
Desktop/ts/state/smart/PinChangeModal.preload.tsx
T
2026-09-01 21:30:44 +00:00

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}
/>
);
});