17 lines
670 B
TypeScript
17 lines
670 B
TypeScript
import type { FC } from '../../lib/teact/teact';
|
|
import React, { memo } from '../../lib/teact/teact';
|
|
import type { OwnProps } from './CustomEmojiSetsModal';
|
|
import { Bundles } from '../../util/moduleLoader';
|
|
|
|
import useModuleLoader from '../../hooks/useModuleLoader';
|
|
|
|
const CustomEmojiSetsModalAsync: FC<OwnProps> = (props) => {
|
|
const { customEmojiSetIds } = props;
|
|
const CustomEmojiSetsModal = useModuleLoader(Bundles.Extra, 'CustomEmojiSetsModal', !customEmojiSetIds);
|
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
return CustomEmojiSetsModal ? <CustomEmojiSetsModal {...props} /> : undefined;
|
|
};
|
|
|
|
export default memo(CustomEmojiSetsModalAsync);
|