import { Bell, Monitor, Gauge, Server, Boxes, AlertTriangle, LayoutList, ListChecks, Wrench, Activity, LifeBuoy, MessageSquare, FileText, ScrollText, } from "lucide-react"; import type { IUser } from "@/types/user"; export const getMenu = (t: Function, user: IUser) => { const userOrgPermissions = user?.org?.permissions || []; const hasDiagnostics = userOrgPermissions.includes("master"); return [ { name: t("menu.uptime"), path: "uptime", icon: , }, { name: t("menu.pagespeed"), path: "pagespeed", icon: , }, { name: t("menu.infrastructure"), path: "infrastructure", icon: , }, { name: t("menu.docker"), path: "docker", icon: , }, { name: t("menu.notifications"), path: "notification-channels", icon: , }, { name: t("menu.incidents"), path: "incidents", icon: , }, { name: t("menu.checks"), path: "checks", icon: , }, { name: t("menu.statusPages"), path: "status-pages", icon: , }, { name: t("menu.maintenance"), path: "maintenance", icon: , }, ...(hasDiagnostics ? [ { name: t("menu.diagnostics"), path: "diagnostics", icon: , }, ] : []), ]; }; export const getBottomMenu = (t: Function) => [ { name: t("menu.support"), path: "support", icon: , url: "https://discord.com/invite/NAb6H3UTjK", }, { name: t("menu.discussions"), path: "discussions", icon: , url: "https://github.com/bluewave-labs/checkmate/discussions", }, { name: t("menu.docs"), path: "docs", icon: , url: "https://bluewavelabs.gitbook.io/checkmate", }, { name: t("menu.changelog"), path: "changelog", icon: , url: "https://github.com/bluewave-labs/checkmate/releases", }, ];