Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
517 B ยท 19 lines
TypeScript
1234567891011121314151617181920import { MONITOR_TABS } from "@/app/(dashboard)/monitors/[id]/constants";
import type { CommandMenuGroup, CommandPage } from "../types";
export function monitorScopeGroups( page: Extract<CommandPage, { type: "monitor" }>,): CommandMenuGroup[] { return [ { heading: page.name, items: MONITOR_TABS.map((tab) => ({ value: tab.label, label: tab.label, icon: tab.icon, action: { type: "navigate", href: `/monitors/${page.id}/${tab.value}` }, })), }, ];}