import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { ResourceQuotaInfo } from "@/lib/tauriCommands"; interface ResourceQuotaListProps { resourcequotas: ResourceQuotaInfo[]; clusterId: string; namespace: string; } export function ResourceQuotaList({ resourcequotas }: ResourceQuotaListProps) { return (
Name Namespace CPU Req Mem Req CPU Limit Mem Limit Age {resourcequotas.length === 0 ? ( No resource quotas found ) : ( resourcequotas.map((rq) => ( {rq.name} {rq.namespace} {rq.request_cpu || "—"} {rq.request_memory || "—"} {rq.limit_cpu || "—"} {rq.limit_memory || "—"} {rq.age} )) )}
); }