2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-01-29 22:16:48 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2022-12-22 03:07:45 +00:00
|
|
|
// TODO DESKTOP-4761
|
|
|
|
|
2021-01-29 22:16:48 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { Store } from 'redux';
|
2021-01-29 22:16:48 +00:00
|
|
|
|
|
|
|
import { ModalHost } from '../../components/ModalHost';
|
2024-03-13 20:44:13 +00:00
|
|
|
import type { SmartGroupV2JoinDialogProps } from '../smart/GroupV2JoinDialog';
|
2021-10-26 19:15:33 +00:00
|
|
|
import { SmartGroupV2JoinDialog } from '../smart/GroupV2JoinDialog';
|
2021-01-29 22:16:48 +00:00
|
|
|
|
|
|
|
export const createGroupV2JoinModal = (
|
|
|
|
store: Store,
|
2024-03-13 20:44:13 +00:00
|
|
|
props: SmartGroupV2JoinDialogProps
|
2021-01-29 22:16:48 +00:00
|
|
|
): React.ReactElement => {
|
|
|
|
const { onClose } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Provider store={store}>
|
2022-09-27 20:24:21 +00:00
|
|
|
<ModalHost modalName="createGroupV2JoinModal" onClose={onClose}>
|
2021-01-29 22:16:48 +00:00
|
|
|
<SmartGroupV2JoinDialog {...props} />
|
|
|
|
</ModalHost>
|
|
|
|
</Provider>
|
|
|
|
);
|
|
|
|
};
|