import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { LimitRangeInfo } from "@/lib/tauriCommands"; interface LimitRangeListProps { limitranges: LimitRangeInfo[]; clusterId: string; namespace: string; } export function LimitRangeList({ limitranges }: LimitRangeListProps) { return (
Name Namespace Limits Age {limitranges.length === 0 ? ( No limit ranges found ) : ( limitranges.map((lr) => ( {lr.name} {lr.namespace} {lr.limit_count} {lr.age} )) )}
); }