temp: add resources
This commit is contained in:
22
packages/resources/src/pages/main/index.tsx
Normal file
22
packages/resources/src/pages/main/index.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { ActiveMenu, useLayoutStore } from '../store/layout';
|
||||
import { Upload } from '../upload';
|
||||
import { Settings } from '../settings';
|
||||
import { FileApp } from '../file';
|
||||
import { Statistic } from '../statistic';
|
||||
|
||||
export const Main = () => {
|
||||
const { activeMenu } = useLayoutStore();
|
||||
if (activeMenu === ActiveMenu.Upload) {
|
||||
return <Upload />;
|
||||
}
|
||||
if (activeMenu === ActiveMenu.Setting) {
|
||||
return <Settings />;
|
||||
}
|
||||
if (activeMenu === ActiveMenu.Resource) {
|
||||
return <FileApp />;
|
||||
}
|
||||
if (activeMenu === ActiveMenu.Statistic) {
|
||||
return <Statistic />;
|
||||
}
|
||||
return <div>{activeMenu}</div>;
|
||||
};
|
||||
Reference in New Issue
Block a user