Enhancement : Decouple the UI by using conditional rendering for each module

This commit is contained in:
Aj - Thomas
2022-05-08 20:54:40 +02:00
parent 5f58f84843
commit 4452b088c8
8 changed files with 24 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
// This interface is to be used in all the modules of the project
// Each module should have its own interface and call the following function:
// TODO: Add a function to register a module
// Note: Maybe use context to keep track of the modules
export interface MHPModule {
title: string;
description: string;
icon: React.ReactNode;
component: React.ComponentType;
props?: any;
}