import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { DaemonSetInfo } from "@/lib/tauriCommands"; interface DaemonSetListProps { daemonsets: DaemonSetInfo[]; clusterId: string; namespace: string; } export function DaemonSetList({ daemonsets, clusterId: _clusterId, namespace: _namespace }: DaemonSetListProps) { return (
Name Desired Current Ready Up-to-date Available Age {daemonsets.length === 0 ? ( No daemonsets found ) : ( daemonsets.map((ds) => ( {ds.name} {ds.desired} {ds.current} {ds.ready} {ds.up_to_date} {ds.available} {ds.age} )) )}
); }