import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import type { RoleInfo } from "@/lib/tauriCommands"; interface RoleListProps { roles: RoleInfo[]; _clusterId: string; _namespace: string; } export function RoleList({ roles, _clusterId, _namespace }: RoleListProps) { return (
Name Namespace Age {roles.length === 0 ? ( No roles found ) : ( roles.map((role) => ( {role.name} {role.namespace} {role.age} )) )}
); }