import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { PersistentVolumeInfo } from "@/lib/tauriCommands"; interface PVListProps { pvs: PersistentVolumeInfo[]; _clusterId: string; } export function PVList({ pvs, _clusterId }: PVListProps) { return (
Name Status Capacity Access Modes Reclaim Policy Storage Class Age {pvs.length === 0 ? ( No PVs found ) : ( pvs.map((pv) => ( {pv.name} {pv.status} {pv.capacity} {pv.access_modes.join(", ")} {pv.reclaim_policy} {pv.storage_class} {pv.age} )) )}
); }