import { useI18n } from "../i18n"; import { WorkbenchCardIcon } from "../components/WorkbenchCardIcon"; import { modulesInSection, type WorkbenchSection } from "../config/modules"; import { openOrFocusModule } from "../utils/moduleWindows"; import { useAuth } from "../auth/AuthContext"; const SECTIONS: WorkbenchSection[] = ["monitoring", "operations", "system"]; export function WorkbenchPage() { const { t } = useI18n(); const { isAdmin } = useAuth(); return (
{SECTIONS.map((section) => (

{t(`workbench.${section}`)}

{modulesInSection(section) .filter((mod) => !mod.workbenchHidden) .filter((mod) => !mod.adminOnly || isAdmin) .map((mod) => ( ))}
))}
); }