import { LLDPNeighbor } from "../hooks/stores"; import { LifeTimeLabel } from "../routes/devices.$id.settings.network"; import { GridCard } from "./Card"; export default function LLDPNeighCard({ neighbors, }: { neighbors: LLDPNeighbor[]; }) { return (

LLDP Neighbors

{neighbors.map(neighbor => (

{neighbor.mac}

Interface {neighbor.port_description}
{neighbor.system_name && (
System Name {neighbor.system_name}
)} {neighbor.system_description && (
System Description {neighbor.system_description}
)} {neighbor.port_id && (
Port ID {neighbor.port_id}
)} {neighbor.port_description && (
Port Description {neighbor.port_description}
)}
))}
); }