### What problem does this PR solve? fix: thumbnails are too large in the chat box #818 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
20 lines
461 B
TypeScript
20 lines
461 B
TypeScript
import { useTranslate } from '@/hooks/commonHooks';
|
|
import { Form, Switch } from 'antd';
|
|
|
|
const LayoutRecognize = () => {
|
|
const { t } = useTranslate('knowledgeDetails');
|
|
return (
|
|
<Form.Item
|
|
name={['parser_config', 'layout_recognize']}
|
|
label={t('layoutRecognize')}
|
|
initialValue={true}
|
|
valuePropName="checked"
|
|
tooltip={t('layoutRecognizeTip')}
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
);
|
|
};
|
|
|
|
export default LayoutRecognize;
|