signal-desktop/ts/state/smart/RelinkDialog.tsx

23 lines
709 B
TypeScript
Raw Normal View History

2023-01-03 11:55:46 -08:00
// Copyright 2020 Signal Messenger, LLC
2020-10-30 15:34:04 -05:00
// SPDX-License-Identifier: AGPL-3.0-only
import { connect } from 'react-redux';
import { mapDispatchToProps } from '../actions';
2021-08-24 16:59:44 -04:00
import { DialogRelink } from '../../components/DialogRelink';
import type { StateType } from '../reducer';
import { getIntl } from '../selectors/user';
import type { WidthBreakpoint } from '../../components/_util';
type PropsType = Readonly<{ containerWidthBreakpoint: WidthBreakpoint }>;
const mapStateToProps = (state: StateType, ownProps: PropsType) => {
return {
i18n: getIntl(state),
...ownProps,
};
};
const smart = connect(mapStateToProps, mapDispatchToProps);
2021-08-24 16:59:44 -04:00
export const SmartRelinkDialog = smart(DialogRelink);