24 lines
929 B
TypeScript
24 lines
929 B
TypeScript
import { createElement, lazy } from "react";
|
|
import type { PlatformWebModule } from "@govoplan/core-webui";
|
|
import { generatedTranslations } from "./i18n/generatedTranslations";
|
|
import "./styles/scheduling.css";
|
|
|
|
const SchedulingPage = lazy(() => import("./features/scheduling/SchedulingPage"));
|
|
|
|
const scheduleRead = ["scheduling:schedule:read"];
|
|
|
|
export const schedulingModule: PlatformWebModule = {
|
|
id: "scheduling",
|
|
label: "Scheduling",
|
|
version: "1.0.0",
|
|
dependencies: ["poll"],
|
|
optionalDependencies: ["calendar", "mail", "notifications", "workflow", "appointments"],
|
|
translations: generatedTranslations,
|
|
navItems: [{ to: "/scheduling", label: "Scheduling", iconName: "calendar", anyOf: scheduleRead, order: 56 }],
|
|
routes: [
|
|
{ path: "/scheduling", anyOf: scheduleRead, order: 56, render: ({ settings, auth }) => createElement(SchedulingPage, { settings, auth }) }
|
|
]
|
|
};
|
|
|
|
export default schedulingModule;
|