import React, { FC, memo } from '../../lib/teact/teact';
import { Bundles } from '../../util/moduleLoader';

import useModuleLoader from '../../hooks/useModuleLoader';
import Loading from '../ui/Loading';

const StickerSearchAsync: FC = () => {
  const StickerSearch = useModuleLoader(Bundles.Extra, 'StickerSearch');

  // eslint-disable-next-line react/jsx-props-no-spreading
  return StickerSearch ? <StickerSearch /> : <Loading />;
};

export default memo(StickerSearchAsync);
