ragflow / web /src /components /use-knowledge-graph-item.tsx
balibabu
Feat: Display the knowledge graph on the knowledge base page #4543 (#4587)
51db3f9
raw
history blame contribute delete
446 Bytes
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>
);
}