mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-17 23:34:14 +01:00
27 lines
870 B
TypeScript
27 lines
870 B
TypeScript
// Copyright 2020 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
import React, { memo } from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
import { DialogRelink } from '../../components/DialogRelink.dom.js';
|
|
import { getIntl } from '../selectors/user.std.js';
|
|
import type { WidthBreakpoint } from '../../components/_util.std.js';
|
|
import { useNetworkActions } from '../ducks/network.dom.js';
|
|
|
|
type SmartRelinkDialogProps = Readonly<{
|
|
containerWidthBreakpoint: WidthBreakpoint;
|
|
}>;
|
|
|
|
export const SmartRelinkDialog = memo(function SmartRelinkDialog({
|
|
containerWidthBreakpoint,
|
|
}: SmartRelinkDialogProps) {
|
|
const i18n = useSelector(getIntl);
|
|
const { relinkDevice } = useNetworkActions();
|
|
return (
|
|
<DialogRelink
|
|
i18n={i18n}
|
|
containerWidthBreakpoint={containerWidthBreakpoint}
|
|
relinkDevice={relinkDevice}
|
|
/>
|
|
);
|
|
});
|