import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { ReplicationControllerInfo } from "@/lib/tauriCommands"; interface ReplicationControllerListProps { items: ReplicationControllerInfo[]; clusterId: string; namespace?: string; } export function ReplicationControllerList({ items }: ReplicationControllerListProps) { return (
Name Namespace Desired Ready Current Age {items.length === 0 ? ( No replication controllers found ) : ( items.map((rc) => ( {rc.name} {rc.namespace} {rc.desired} {rc.ready} {rc.current} {rc.age} )) )}
); }