add settings pane for info

This commit is contained in:
marlon-erler
2026-04-09 15:45:19 +00:00
parent 31418f5df0
commit bb096e1443
7 changed files with 118 additions and 48 deletions
+14 -8
View File
@@ -1,18 +1,24 @@
import * as React from "bloatless-react";
export function InfoTile(icon: string, label: string, content: string|React.State<string>) {
let contentState: React.State<string>
export function InfoTile(
icon: string,
label: string,
content: string | React.State<string>,
) {
let contentState: React.State<string>;
if (typeof content == "string") {
contentState = new React.State(content);
} else {
contentState = content;
}
return <div class="tile">
<span class="icon">{icon}</span>
<div>
<span>{label}</span>
<b class="break-word" subscribe:innerText={contentState}></b>
return (
<div class="tile">
<span class="icon">{icon}</span>
<div>
<span>{label}</span>
<b class="break-word" subscribe:innerText={contentState}></b>
</div>
</div>
</div>;
);
}