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 { AuthRealm } from '@/lib/proxmoxClient'; interface RealmListProps { realms: AuthRealm[]; onRefresh?: () => void; isLoading?: boolean; onCreate?: () => void; onEdit?: (realm: AuthRealm) => void; onDelete?: (realm: AuthRealm) => void; } export function RealmList({ realms, onRefresh, isLoading, onCreate, onEdit, onDelete, }: RealmListProps) { return ( Authentication Realms
Realm Name Type Comment Actions {realms.length === 0 ? ( No auth realms configured ) : ( realms.map((realm) => ( {realm.realm} {realm.type.toUpperCase()} {realm.comment ?? '-'}
)) )}
); }