import React from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui"; 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, namespace }: StatefulSetListProps) { return (
Name Ready Replicas Age {statefulsets.length === 0 ? ( No statefulsets found ) : ( statefulsets.map((ss) => ( {ss.name} {ss.ready} {ss.replicas} {ss.age} )) )}
); }