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