+
+ {title}
+
- const { defaultValue, title, description, key, disabled, invisible } = Setting;
- if (invisible?.()) return null;
+
+ {settings.map(Setting => {
+ if (typeof Setting === "function") return ;
- return (
- (Settings[key as any] = v)}
- note={description}
- disabled={disabled?.()}
- key={key}
- >
- {title}
-
- );
- })}
-
+ const { defaultValue, title, description, key, disabled, invisible } = Setting;
+ if (invisible?.()) return null;
+
+ return (
+ (Settings[key as any] = v)}
+ note={description}
+ disabled={disabled?.()}
+ key={key}
+ >
+ {title}
+
+ );
+ })}
+
+
+ {i < arr.length - 1 &&
}
+
));
return <>{sections}>;
@@ -167,10 +179,11 @@ export default ErrorBoundary.wrap(
function SettingsUI() {
return (