grpc.tsx 804 B

12345678910111213141516171819202122232425262728293031
  1. import { useTranslation } from 'react-i18next';
  2. import { Input, Switch } from 'antd';
  3. import { FormField } from '@/components/form/rhf';
  4. export default function GrpcForm() {
  5. const { t } = useTranslation();
  6. return (
  7. <>
  8. <FormField
  9. label={t('pages.inbounds.form.serviceName')}
  10. name={['streamSettings', 'grpcSettings', 'serviceName']}
  11. >
  12. <Input />
  13. </FormField>
  14. <FormField
  15. label={t('pages.inbounds.form.authority')}
  16. name={['streamSettings', 'grpcSettings', 'authority']}
  17. >
  18. <Input />
  19. </FormField>
  20. <FormField
  21. label={t('pages.inbounds.form.multiMode')}
  22. name={['streamSettings', 'grpcSettings', 'multiMode']}
  23. valueProp="checked"
  24. >
  25. <Switch />
  26. </FormField>
  27. </>
  28. );
  29. }