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