import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { ClusterRoleInfo } from "@/lib/tauriCommands"; interface ClusterRoleListProps { clusterRoles: ClusterRoleInfo[]; _clusterId: string; } export function ClusterRoleList({ clusterRoles, _clusterId }: ClusterRoleListProps) { return (
Name Age {clusterRoles.length === 0 ? ( No cluster roles found ) : ( clusterRoles.map((clusterRole) => ( {clusterRole.name} {clusterRole.age} )) )}
); }