import React from 'react'; import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/index'; import { Label } from '@/components/ui/index'; import { Switch } from '@/components/ui/index'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/index'; import { Button } from '@/components/ui/index'; export function ProxmoxSettings() { const [autoUpdate, setAutoUpdate] = React.useState(true); const [updateChannel, setUpdateChannel] = React.useState<'stable' | 'pre-release'>('stable'); const [autoCheck, setAutoCheck] = React.useState(true); const [lastCheck, setLastCheck] = React.useState('Never'); const [defaultPort, setDefaultPort] = React.useState('8006'); const [connectionTimeout, setConnectionTimeout] = React.useState('30'); const [retryAttempts, setRetryAttempts] = React.useState('3'); const [verifyCertificates, setVerifyCertificates] = React.useState(true); const [enableCaching, setEnableCaching] = React.useState(true); const [enableDebug, setEnableDebug] = React.useState(false); const handleCheckUpdates = () => { setLastCheck(new Date().toLocaleString()); console.log('Checking for updates...'); }; return (

Proxmox Settings

Configure Proxmox Datacenter Manager integration

Update Management Configure how Proxmox updates are managed

Automatically check for new Proxmox updates

{updateChannel === 'stable' ? 'Receive only stable, production-ready updates' : 'Receive pre-release updates with new features (may be less stable)'}

Automatically download updates when available

{lastCheck}

Cluster Configuration Default settings for new Proxmox clusters

Used when connecting to new clusters

Advanced Options Advanced Proxmox integration settings

Require valid SSL certificates for cluster connections

Reuse connections to improve performance

Log detailed Proxmox API interactions

); }