import ContentGrid from "../../components/ContentGrid"; import Card from "../../components/Card"; import MetricCard from "../../components/MetricCard"; import MetricGrid from "../../components/MetricGrid"; import DescriptionList from "../../components/DescriptionList"; import PageLayout from "../../components/PageLayout"; import { usePlatformModules } from "../../platform/ModuleContext"; export default function DashboardPage() { const modules = usePlatformModules(); return ( {modules.length === 0 ?

i18n:govoplan-core.no_feature_modules_are_active.e9c2d936

: {modules.map((module) =>
{module.id}
{module.label} i18n:govoplan-core.v.26c12f1e{module.version}
)}
}

This minimal core home is only shown while no dashboard WebUI module is available. Feature modules own their pages and can expose dashboard widgets once the dashboard module is installed.

); } function moduleLabels(modules: Array<{label: string;}>): string[] { return modules.map((module) => module.label).slice(0, 4); }