File size: 810 Bytes
477a90e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { useTranslate } from '@/hooks/common-hooks';
import { Form, InputNumber } from 'antd';

const style = {
  width: '100%',
};

export const AutoKeywordsItem = () => {
  const { t } = useTranslate('knowledgeDetails');

  return (
    <Form.Item
      label={t('autoKeywords')}
      name={['parser_config', 'auto_keywords']}
      tooltip={t('autoKeywordsTip')}
      initialValue={0}
    >
      <InputNumber style={style}></InputNumber>
    </Form.Item>
  );
};

export const AutoQuestionsItem = () => {
  const { t } = useTranslate('knowledgeDetails');

  return (
    <Form.Item
      label={t('autoQuestions')}
      name={['parser_config', 'auto_questions']}
      tooltip={t('autoQuestionsTip')}
      initialValue={0}
    >
      <InputNumber style={style}></InputNumber>
    </Form.Item>
  );
};