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 { Play, Trash2, RefreshCw } from 'lucide-react'; import { HaResource } from '@/lib/proxmoxClient'; interface HAResourcesListProps { resources: HaResource[]; onRefresh?: () => void; isLoading?: boolean; onEnable?: (resource: HaResource) => void; onRemove?: (resource: HaResource) => void; } export function HAResourcesList({ resources, onRefresh, isLoading, onEnable, onRemove, }: HAResourcesListProps) { return ( HA Resources
Resource ID Group State Max Restart Max Relocate Actions {resources.length === 0 ? ( No HA resources configured ) : ( resources.map((resource) => ( {resource.sid} {resource.group ?? '-'} {resource.state} {resource.maxRestart ?? '-'} {resource.maxRelocate ?? '-'}
)) )}
); }