import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { StatefulSetInfo } from "@/lib/tauriCommands"; interface StatefulSetListProps { statefulsets: StatefulSetInfo[]; clusterId: string; namespace: string; } export function StatefulSetList({ statefulsets, clusterId: _clusterId, namespace: _namespace }: StatefulSetListProps) { return (
Name Ready Replicas Age {statefulsets.length === 0 ? ( No statefulsets found ) : ( statefulsets.map((ss) => ( {ss.name} {ss.ready} {ss.replicas} {ss.age} )) )}
); }