import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { PersistentVolumeClaimInfo } from "@/lib/tauriCommands"; interface PVCListProps { pvcs: PersistentVolumeClaimInfo[]; _clusterId: string; _namespace: string; } export function PVCList({ pvcs, _clusterId, _namespace }: PVCListProps) { return (
Name Namespace Status Volume Capacity Access Modes Age {pvcs.length === 0 ? ( No PVCs found ) : ( pvcs.map((pvc) => ( {pvc.name} {pvc.namespace} {pvc.status} {pvc.volume} {pvc.capacity} {pvc.access_modes.join(", ")} {pvc.age} )) )}
); }