import { cx } from "@/cva.config";
import { LLDPNeighbor } from "../hooks/stores";
import { GridCard } from "./Card";
interface LLDPDataLineProps {
label: string;
value: string;
className?: string;
}
const LLDPDataLine = ({ label, value, className }: LLDPDataLineProps) => {
return (
{label}
{value}
);
}
export default function LLDPNeighborsCard({
neighbors,
}: {
neighbors: LLDPNeighbor[];
}) {
return (
LLDP Neighbors
{neighbors.map(neighbor => {
const displayName = neighbor.system_name || neighbor.port_description || neighbor.mac;
return
{displayName}
{neighbor.system_name && (
)}
{neighbor.system_description && (
)}
{neighbor.chassis_id && (
)}
{neighbor.port_id && (
)}
{neighbor.port_description && (
)}
{neighbor.management_address && (
)}
{neighbor.mac && (
)}
{neighbor.source && (
)}
})}
);
}