import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { WebhookConfigInfo } from "@/lib/tauriCommands"; interface ValidatingWebhookListProps { items: WebhookConfigInfo[]; clusterId: string; namespace?: string; } export function ValidatingWebhookList({ items }: ValidatingWebhookListProps) { return (
Name Webhooks Age {items.length === 0 ? ( No validating webhook configurations found ) : ( items.map((wh) => ( {wh.name} {wh.webhooks} {wh.age} )) )}
); }