import { ScrollText } from "lucide-react"; import { lazyWithPreload } from "../../lib/lazyWithPreload"; import type { ModuleDef } from "../../lib/moduleDef"; import { ACTIVITY_KEYS } from "../../lib/activityUrlState"; // This page as the shell and the navigation know it (lib/moduleDef). Its page loads lazily. export const activityModule: ModuleDef = { id: "activity", labelKey: "header.account.activity", railKey: "nav.rail.activity", titleKey: "activity.title", icon: ScrollText, system: true, gate: (me) => me.role === "admin", Page: lazyWithPreload(() => import("./Activity")), urlKeys: ACTIVITY_KEYS, };