import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Badge } from "@/components/ui"; import type { PriorityClassInfo } from "@/lib/tauriCommands"; interface PriorityClassListProps { items: PriorityClassInfo[]; clusterId: string; namespace?: string; } export function PriorityClassList({ items }: PriorityClassListProps) { return (
Name Value Global Default Age {items.length === 0 ? ( No priority classes found ) : ( items.map((pc) => ( {pc.name} {pc.value} {pc.global_default ? ( Yes ) : ( No )} {pc.age} )) )}
); }