TelegramPWA/src/components/left/ArchivedChats.async.tsx
2022-05-30 15:40:11 +04:00

17 lines
601 B
TypeScript

import type { FC } from '../../lib/teact/teact';
import React, { memo } from '../../lib/teact/teact';
import type { 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);