httpupgrade.tsx 754 B

12345678910111213141516171819202122232425
  1. import { useTranslation } from 'react-i18next';
  2. import { Input } from 'antd';
  3. import { HeaderMapEditor } from '@/components/form';
  4. import { FormField } from '@/components/form/rhf';
  5. export default function HttpUpgradeForm() {
  6. const { t } = useTranslation();
  7. return (
  8. <>
  9. <FormField label={t('host')} name={['streamSettings', 'httpupgradeSettings', 'host']}>
  10. <Input />
  11. </FormField>
  12. <FormField label={t('path')} name={['streamSettings', 'httpupgradeSettings', 'path']}>
  13. <Input />
  14. </FormField>
  15. <FormField
  16. label={t('pages.inbounds.form.headers')}
  17. name={['streamSettings', 'httpupgradeSettings', 'headers']}
  18. >
  19. <HeaderMapEditor mode="v1" />
  20. </FormField>
  21. </>
  22. );
  23. }