import { Button } from "@minmon/ui/components/button"; import { cn } from "@minmon/ui/lib/utils"; import { Link, Outlet, useRouterState } from "@tanstack/react-router"; import { Activity, BookText, Globe, LayoutGrid, Server, Wrench } from "lucide-react"; const dashboardLinks = [ { to: "/dashboard", label: "Overview", description: "Health, alerts, and recent checks", icon: LayoutGrid, }, { to: "/dashboard/servers", label: "Servers", description: "Inventory and host details", icon: Server, }, { to: "/dashboard/services", label: "Services", description: "Processes and uptime targets", icon: Wrench, }, { to: "/dashboard/domains", label: "Domains", description: "DNS, SSL, and expiry status", icon: Globe, }, { to: "/dashboard/notes", label: "Notes", description: "Runbooks and operational handover", icon: BookText, }, ] as const; export function DashboardShell({ userName, userEmail, }: { userName?: string | null; userEmail?: string | null; }) { const pathname = useRouterState({ select: (state) => state.location.pathname, }); return (
Server Management Dashboard
Use this area to review monitored assets, inspect detail states, and stage CRUD forms that can connect to tRPC routers as they are added.
Signed in as
{userName ?? "Administrator"}
{userEmail ?? "admin@minmon.local"}