41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { Icon } from "@/Components/v2/design-elements";
|
|||
|
|
|
||
|
|
import {
|
||
|
|
Globe,
|
||
|
|
Gauge,
|
||
|
|
Link,
|
||
|
|
Bell,
|
||
|
|
FileText,
|
||
|
|
AlertTriangle,
|
||
|
|
Wifi,
|
||
|
|
Wrench,
|
||
|
|
Database,
|
||
|
|
Settings,
|
||
|
|
} from "lucide-react";
|
||
|
|
|
||
|
|
export const getMenu = (t: Function) => {
|
||
|
|
return [
|
||
|
|
{ name: t("menu.uptime"), path: "uptime", icon: <Icon icon={Globe} /> },
|
||
|
|
{ name: t("menu.pagespeed"), path: "pagespeed", icon: <Icon icon={Gauge} /> },
|
||
|
|
{
|
||
|
|
name: t("menu.infrastructure"),
|
||
|
|
path: "infrastructure",
|
||
|
|
icon: <Icon icon={Link} />,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: t("menu.notifications"),
|
||
|
|
path: "notifications",
|
||
|
|
icon: <Icon icon={Bell} />,
|
||
|
|
},
|
||
|
|
{ name: t("menu.checks"), path: "checks", icon: <Icon icon={FileText} /> },
|
||
|
|
{ name: t("menu.incidents"), path: "incidents", icon: <Icon icon={AlertTriangle} /> },
|
||
|
|
{ name: t("menu.statusPages"), path: "status", icon: <Icon icon={Wifi} /> },
|
||
|
|
{ name: t("menu.maintenance"), path: "maintenance", icon: <Icon icon={Wrench} /> },
|
||
|
|
{ name: t("menu.logs"), path: "logs", icon: <Icon icon={Database} /> },
|
||
|
|
{
|
||
|
|
name: t("menu.settings"),
|
||
|
|
icon: <Icon icon={Settings} />,
|
||
|
|
path: "settings",
|
||
|
|
},
|
||
|
|
];
|
||
|
|
};
|