"use client"; import { InfoBanner, SectionDivider } from "@/modules/settings/components/panel/controls"; import { SETTINGS_PANEL_INSET } from "@/modules/settings/components/panel/surface"; import type { SettingsBackend } from "@/modules/settings/components/panel/types"; import { cn } from "@/lib/utils"; type NetworkSectionProps = { data: SettingsBackend["network"]; }; function InfoRow({ label, value, mono }: { label: string; value: string; mono?: boolean }) { return (
{label} {value}
); } export function NetworkSection({ data }: NetworkSectionProps) { const isEthernet = data.connected && data.ssid === "--"; return (
{data.warning && ( )}
{/* Status header */}
{data.iface} {data.connected ? "Connected" : "Disconnected"}
{isEthernet ? "Ethernet" : `Signal ${data.signalPercent}`}
{/* Detail rows */}
{isEthernet ? ( ) : ( <> {data.topSsids.length > 0 && (
Nearby SSIDs
{data.topSsids.map((ssid) => ( {ssid} ))}
)} )}

Gateway, DNS, DHCP, IPv6, MTU, and Wake-on-LAN configuration is coming in a future update.

); }