'use client'; import {Info} from 'lucide-react'; import {Switch} from '@/components/ui/switch'; import {Label} from '@/components/ui/label'; import type {ProxyRoutePoWConfig} from '@/lib/services/openflare'; interface PowConfigPanelProps { enabled: boolean; config: ProxyRoutePoWConfig; onChange: (enabled: boolean, config: ProxyRoutePoWConfig) => void; } export function PowConfigPanel({ enabled, config, onChange }: PowConfigPanelProps) { return (

PoW 配置面板(占位)

完整 PoW 黑白名单与难度参数编辑将在后续迭代中实装。当前可先切换启用状态并保存规则组。

算法 {config.algorithm} · 难度 {config.difficulty}

onChange(checked, config)} />
); }