16 lines
432 B
TypeScript
16 lines
432 B
TypeScript
import type { OwnProps } from './ArchivedChats';
|
|
|
|
import { Bundles } from '../../util/moduleLoader';
|
|
|
|
import useModuleLoader from '../../hooks/useModuleLoader';
|
|
|
|
import Loading from '../ui/Loading';
|
|
|
|
const ArchivedChatsAsync = (props: OwnProps) => {
|
|
const ArchivedChats = useModuleLoader(Bundles.Extra, 'ArchivedChats');
|
|
|
|
return ArchivedChats ? <ArchivedChats {...props} /> : <Loading />;
|
|
};
|
|
|
|
export default ArchivedChatsAsync;
|