Add a proceudally generated options manager

This allows for options in settings generated based on their name in module config. Very important change 🧙
This commit is contained in:
ajnart
2022-05-18 22:11:37 +02:00
parent b0be26300e
commit 119f2d7e51
3 changed files with 94 additions and 15 deletions

View File

@@ -7,5 +7,14 @@ export interface IModule {
description: string;
icon: React.ReactNode;
component: React.ComponentType;
props?: any;
options?: Option;
}
interface Option {
[x: string]: OptionValues;
}
interface OptionValues {
name: string;
value: boolean;
}