import { createElement, lazy } from "react"; import type { PlatformWebModule } from "@govoplan/core-webui"; import { generatedTranslations } from "./i18n/generatedTranslations"; import "./styles/committee.css"; const CommitteePage = lazy(() => import("./features/committee/CommitteePage")); export const committeeModule: PlatformWebModule = { id: "committee", label: "i18n:govoplan-committee.committee", version: "0.1.8", optionalDependencies: ["calendar", "files", "mandates", "decisions", "approvals"], translations: generatedTranslations, navItems: [ { to: "/committee", label: "i18n:govoplan-committee.committee", iconName: "gavel", anyOf: ["committee:workspace:read"], order: 38 } ], routes: [ { path: "/committee", anyOf: ["committee:workspace:read"], order: 38, render: (context) => createElement(CommitteePage, context) } ] }; export default committeeModule;