import { useTheme } from '../hooks/useTheme' import { useLocalStorage } from '../hooks/useLocalStorage' import { Sun, Moon, Monitor, Zap, Clock } from 'lucide-react' const REFRESH_PRESETS = [ { label: '5s', value: 5_000 }, { label: '10s', value: 10_000 }, { label: '30s', value: 30_000 }, { label: '60s', value: 60_000 }, ] export default function SettingsPage() { const { isDark, toggleTheme } = useTheme() const [gatewayUrl, setGatewayUrl] = useLocalStorage('cc-gateway-url', '') const [refreshInterval, setRefreshInterval] = useLocalStorage('cc-refresh-interval', 30_000) return (

Settings

Application preferences

{/* Appearance */}

Appearance

Dark Mode

Toggle between dark and light themes

{/* Connection */}

Connection

setGatewayUrl(e.target.value)} placeholder="http://localhost:8080" className="w-full px-3 py-2 rounded-lg border border-surface-light bg-surface-darkest text-on-surface placeholder:text-on-surface-muted focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors" />

The backend Gateway address for API requests

{/* Refresh */}

Auto Refresh

Data refresh interval for agent status and logs

p.value === refreshInterval)} onChange={(e) => { const idx = parseInt(e.target.value) setRefreshInterval(REFRESH_PRESETS[idx].value) }} className="w-full accent-primary" />
{REFRESH_PRESETS.map((p) => ( ))}
) }