mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-09-29 10:08:49 +00:00
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;
|