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