import React from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/index'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/index'; import { Button } from '@/components/ui/index'; import { Pencil, Trash2, PlusCircle, RefreshCw } from 'lucide-react'; import { AclEntry } from '@/lib/proxmoxClient'; interface AclListProps { acls: AclEntry[]; onRefresh?: () => void; isLoading?: boolean; onAdd?: () => void; onEdit?: (acl: AclEntry) => void; onDelete?: (acl: AclEntry) => void; } export function AclList({ acls, onRefresh, isLoading, onAdd, onEdit, onDelete, }: AclListProps) { return ( Access Control Lists (ACL)
{onAdd && ( )}
Path Type Principal Role Propagate Actions {acls.length === 0 ? ( No ACL entries configured ) : ( acls.map((acl, index) => ( {acl.path} {acl.type} {acl.ugid} {acl.roleid} {acl.propagate ? 'Yes' : 'No'}
)) )}
); }