import { Network } from 'lucide-react'; import { useHeadscaleServers } from './useHeadscaleServers'; import { HEADSCALE_SECTIONS } from './shared'; import { useHeadscaleSection } from './useHeadscaleSection'; // Panel header for the right (headscale-view) panel. Shows the section and, crucially, which server it is // acting on — with several registered, "delete this node" is only safe if the target is unambiguous. export const HeadscaleViewHeader = () => { const section = useHeadscaleSection(); const { active } = useHeadscaleServers(); const label = HEADSCALE_SECTIONS.find((s) => s.id === section)?.label ?? 'Headscale'; return ( <> {label} {active && · {active.name}} ); };