TelegramPWA/src/components/middle/composer/ChatCommandTooltip.async.tsx
2025-06-04 20:41:58 +02:00

17 lines
527 B
TypeScript

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