import { useTranslation } from 'react-i18next'; import { Button, Form, Input, InputNumber, Space, Typography } from 'antd'; interface VlessFieldsProps { saving: boolean; selectedVlessAuth: string; network: string; security: string; getNewVlessEnc: (kind: 'x25519' | 'mlkem768') => void; clearVlessEnc: () => void; } export default function VlessFields({ saving, selectedVlessAuth, network, security, getNewVlessEnc, clearVlessEnc, }: VlessFieldsProps) { const { t } = useTranslation(); return ( <> {t('pages.inbounds.vlessAuthSelected', { auth: selectedVlessAuth })} {network === 'tcp' && (security === 'tls' || security === 'reality') && ( {[900, 500, 900, 256].map((def, i) => ( ))} )} ); }