import { Col, Form, Input, Row, Select, Switch, Typography } from 'antd'; const { Text } = Typography; type HuyaConfigScope = 'all' | 'points'; interface HuyaConfigFieldsProps { scope?: HuyaConfigScope; } export default function HuyaConfigFields({ scope = 'all' }: HuyaConfigFieldsProps) { const showAll = scope === 'all'; return ( {showAll && ( <> {showAll && ( ({ checked: ['1', 'true', 'on', 'yes'].includes(String(value || '0').toLowerCase()), })} normalize={(checked: boolean) => (checked ? '1' : '0')} extra={默认关闭;开启后仅精英宝典兑换链路使用全局代理配置} > )} ); }