mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 06:40:29 +08:00
22 lines
446 B
TypeScript
22 lines
446 B
TypeScript
|
|
import { Form, Switch } from 'antd';
|
||
|
|
import { useTranslation } from 'react-i18next';
|
||
|
|
|
||
|
|
type IProps = {
|
||
|
|
filedName: string[];
|
||
|
|
};
|
||
|
|
|
||
|
|
export function UseKnowledgeGraphItem({ filedName }: IProps) {
|
||
|
|
const { t } = useTranslation();
|
||
|
|
|
||
|
|
return (
|
||
|
|
<Form.Item
|
||
|
|
label={t('chat.useKnowledgeGraph')}
|
||
|
|
tooltip={t('chat.useKnowledgeGraphTip')}
|
||
|
|
name={filedName}
|
||
|
|
initialValue={false}
|
||
|
|
>
|
||
|
|
<Switch></Switch>
|
||
|
|
</Form.Item>
|
||
|
|
);
|
||
|
|
}
|