TelegramPWA/src/components/modals/chatInvite/ChatInviteModal.async.tsx
2025-06-04 20:41:58 +02:00

17 lines
504 B
TypeScript

import type { FC } from '../../../lib/teact/teact';
import type { OwnProps } from './ChatInviteModal';
import { Bundles } from '../../../util/moduleLoader';
import useModuleLoader from '../../../hooks/useModuleLoader';
const ChatInviteModalAsync: FC<OwnProps> = (props) => {
const { modal } = props;
const ChatInviteModal = useModuleLoader(Bundles.Extra, 'ChatInviteModal', !modal);
return ChatInviteModal ? <ChatInviteModal {...props} /> : undefined;
};
export default ChatInviteModalAsync;