16 lines
553 B
TypeScript
16 lines
553 B
TypeScript
import React, { FC } from '../../../lib/teact/teact';
|
|
import { OwnProps } from './StickerTooltip';
|
|
import { Bundles } from '../../../util/moduleLoader';
|
|
|
|
import useModuleLoader from '../../../hooks/useModuleLoader';
|
|
|
|
const StickerTooltipAsync: FC<OwnProps> = (props) => {
|
|
const { isOpen } = props;
|
|
const StickerTooltip = useModuleLoader(Bundles.Extra, 'StickerTooltip', !isOpen);
|
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
return StickerTooltip ? <StickerTooltip {...props} /> : undefined;
|
|
};
|
|
|
|
export default StickerTooltipAsync;
|