mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Created process directory
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import HelloWorld from 'components/apps/HelloWorld';
|
||||
import type { ReactElement } from 'react';
|
||||
import processDirectory from 'utils/processDirectory';
|
||||
|
||||
export default function Home(): ReactElement {
|
||||
return <HelloWorld />;
|
||||
return <processDirectory.HelloWorld.Component />;
|
||||
}
|
||||
|
||||
9
utils/processDirectory.tsx
Normal file
9
utils/processDirectory.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
const processDirectory = {
|
||||
HelloWorld: {
|
||||
Component: dynamic(() => import('components/apps/HelloWorld'))
|
||||
}
|
||||
};
|
||||
|
||||
export default processDirectory;
|
||||
Reference in New Issue
Block a user