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