import { useState } from 'react' import { useTimeout } from '../../utils/useTimeout' import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '../ui/Card' import { Switch } from '../ui/Switch' import { Badge } from '../ui/Badge' import { Alert, AlertTitle, AlertDescription } from '../ui/Alert' import { Tooltip } from '../ui/Tooltip' import { Kbd } from '../ui/Kbd' import { Icon } from '../Icon' export function SettingsPanel() { const [apiKeyVisible, setApiKeyVisible] = useState(false) const [copied, setCopied] = useState(false) const [saved, setSaved] = useState(false) // Toggles const [canaryEnabled, setCanaryEnabled] = useState(true) const [telemetryEnabled, setTelemetryEnabled] = useState(true) const [autoRollback, setAutoRollback] = useState(false) const apiKey = 'nsk_live_98a72ef01bc34d89a2' const { schedule } = useTimeout() const copyKey = () => { navigator.clipboard?.writeText(apiKey) setCopied(true) schedule(() => setCopied(false), 2000) } const handleSave = () => { setSaved(true) schedule(() => setSaved(false), 2500) } return (