Add dashboard module

This commit is contained in:
2026-07-09 17:08:00 +02:00
commit 441f8f11ac
23 changed files with 548 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { StatusBadge, type PlatformWebModule } from "@govoplan/core-webui";
export default function InstalledModulesWidget({ modules }: { modules: PlatformWebModule[] }) {
if (!modules.length) return <p className="muted">No WebUI modules are active.</p>;
return (
<dl className="detail-list dashboard-compact-list">
{modules.map((module) =>
<div key={module.id}>
<dt><StatusBadge status="success" label={module.id} /></dt>
<dd><strong>{module.label}</strong><span className="muted"> v{module.version}</span></dd>
</div>
)}
</dl>);
}