import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { Slider } from "@/components/ui/slider" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" import { Separator } from "@/components/ui/separator" import { Switch } from "@/components/ui/switch" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Textarea } from "@/components/ui/textarea" import { Checkbox } from "@/components/ui/checkbox" import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group" import { ScrollArea } from "@/components/ui/scroll-area" import { useState } from "react" import { Config, defaultConfig } from "@/types/config" import { Settings, Volume2, FlashlightIcon as Brightness4, Wifi, Database, Shield, Monitor, Bell, Server, Lock, Zap, HardDrive, Cpu, } from "lucide-react" export default function Control() { const [config, setConfig] = useState(defaultConfig) const updateConfig = (key: keyof Config, value: any) => { setConfig(prev => ({ ...prev, [key]: value })) } const updateSliderConfig = (key: keyof Config, value: number[]) => { updateConfig(key, value[0]) } return (
System Controls Audio, display, and hardware settings
updateSliderConfig('volume', value)} max={100} step={1} />
updateSliderConfig('brightness', value)} max={100} step={1} />
updateSliderConfig('temperature', value)} min={16} max={30} step={0.5} />
{/* Server Configuration */} Server Configuration Core server and API settings
updateConfig('serverName', e.target.value)} placeholder="Enter server name" />
updateConfig('apiKey', e.target.value)} placeholder="Enter API key" />
{/* Performance Settings */} Performance Settings Resource allocation and optimization
updateSliderConfig('maxConnections', value)} min={10} max={500} step={10} />
updateSliderConfig('cacheSize', value)} min={64} max={2048} step={64} />
updateSliderConfig('threadCount', value)} min={1} max={32} step={1} />
updateSliderConfig('memoryLimit', value)} min={512} max={8192} step={256} />
updateSliderConfig('networkBandwidth', value)} min={10} max={1000} step={10} />
{/* Security & Features */} Security & Features Security settings and feature toggles
updateConfig('sslEnabled', checked)} />
updateConfig('autoBackup', checked)} />
updateConfig('compressionEnabled', checked)} />
updateConfig('debugMode', checked)} />
updateConfig('maintenanceMode', checked)} />
{/* Notifications & Alerts */} Notifications & Alerts Configure notification preferences
updateConfig('notifications', checked)} />
updateConfig('emailAlerts', checked)} />
updateConfig('smsAlerts', checked)} />
updateConfig('monitoringEnabled', checked)} />
{/* Advanced Configuration */} Advanced Configuration Detailed system configuration options