14 lines
328 B
TypeScript
14 lines
328 B
TypeScript
import type { OwnProps } from './Main';
|
|
|
|
import { Bundles } from '../../util/moduleLoader';
|
|
|
|
import useModuleLoader from '../../hooks/useModuleLoader';
|
|
|
|
const MainAsync = (props: OwnProps) => {
|
|
const Main = useModuleLoader(Bundles.Main, 'Main');
|
|
|
|
return Main ? <Main {...props} /> : undefined;
|
|
};
|
|
|
|
export default MainAsync;
|