grpc.tsx 762 B

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