import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { PodDisruptionBudgetInfo } from "@/lib/tauriCommands"; interface PodDisruptionBudgetListProps { items: PodDisruptionBudgetInfo[]; clusterId: string; namespace?: string; } export function PodDisruptionBudgetList({ items }: PodDisruptionBudgetListProps) { return (
Name Namespace Min Available Max Unavailable Disruptions Allowed Age {items.length === 0 ? ( No pod disruption budgets found ) : ( items.map((pdb) => ( {pdb.name} {pdb.namespace} {pdb.min_available} {pdb.max_unavailable} {pdb.disruptions_allowed} {pdb.age} )) )}
); }