"use client"; import { Network, RefreshCw } from "lucide-react"; import { TopologyCanvas } from "@/components/topology/topology-canvas"; import { useTopologyData } from "@/hooks/use-topology-data"; export default function TopologyPage() { const { graph, loading, error } = useTopologyData(); if (loading) { return (

Network Topology

Real-time server infrastructure, proxy connections, and Kubernetes nodes

Loading topology...

); } if (error) { return (

Network Topology

Real-time server infrastructure, proxy connections, and Kubernetes nodes

Error loading topology

{error}

Auto-retrying...

); } if (!graph || graph.nodes.length === 0) { return (

Network Topology

Real-time server infrastructure, proxy connections, and Kubernetes nodes

No servers or infrastructure found

Create a server to see it appear in the topology

); } return (

Network Topology

Real-time server infrastructure, proxy connections, and Kubernetes nodes

); }