17 lines
504 B
TypeScript
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;
|