'use client' import { Settings, Gauge, Zap, Clock } from 'lucide-react' interface Config { threshold: number batchSize: number speed: number } interface ControlPanelProps { config: Config setConfig: (config: Config) => void } export default function ControlPanel({ config, setConfig }: ControlPanelProps) { return (

Configuration

{/* Threshold slider */}
{config.threshold.toFixed(2)}
setConfig({ ...config, threshold: parseFloat(e.target.value) })} className="w-full h-2 bg-dark-700 rounded-lg appearance-none cursor-pointer accent-primary-500" />
Sensitive (0.0) Conservative (1.0)
{/* Batch size slider */}
{config.batchSize}
setConfig({ ...config, batchSize: parseInt(e.target.value) })} className="w-full h-2 bg-dark-700 rounded-lg appearance-none cursor-pointer accent-primary-500" />
Detailed (1) Fast (50)
{/* Speed slider */}
{config.speed.toFixed(1)}s
setConfig({ ...config, speed: parseFloat(e.target.value) })} className="w-full h-2 bg-dark-700 rounded-lg appearance-none cursor-pointer accent-primary-500" />
Fast (0.1s) Slow (3.0s)
{/* Config summary */}

💡 Lower threshold = More fraud alerts (higher recall)
💡 Higher threshold = Fewer false positives (higher precision)

) }