TelegramPWA/src/components/left/ArchivedChats.async.tsx
2021-05-09 01:59:55 +03:00

16 lines
551 B
TypeScript

import React, { FC, memo } from '../../lib/teact/teact';
import { OwnProps } from './ArchivedChats';
import { Bundles } from '../../util/moduleLoader';
import useModuleLoader from '../../hooks/useModuleLoader';
import Loading from '../ui/Loading';
const ArchivedChatsAsync: FC<OwnProps> = (props) => {
const ArchivedChats = useModuleLoader(Bundles.Extra, 'ArchivedChats');
// eslint-disable-next-line react/jsx-props-no-spreading
return ArchivedChats ? <ArchivedChats {...props} /> : <Loading />;
};
export default memo(ArchivedChatsAsync);