import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { IngressInfo } from "@/lib/tauriCommands"; interface IngressListProps { ingresses: IngressInfo[]; _clusterId: string; _namespace: string; } export function IngressList({ ingresses, _clusterId, _namespace }: IngressListProps) { return (
Name Namespace Class Host Addresses Age {ingresses.length === 0 ? ( No ingresses found ) : ( ingresses.map((ingress) => ( {ingress.name} {ingress.namespace} {ingress.class || "-"} {ingress.host} {ingress.addresses.join(", ")} {ingress.age} )) )}
); }