mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 07:26:47 +08:00
### What problem does this PR solve? Feat: Replace antd with shadcn and delete the template node. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
21 lines
462 B
TypeScript
21 lines
462 B
TypeScript
import { useTranslation } from 'react-i18next';
|
|
import { SwitchFormField } from './switch-fom-field';
|
|
|
|
interface UseKnowledgeGraphFormFieldProps {
|
|
name: string;
|
|
}
|
|
|
|
export function UseKnowledgeGraphFormField({
|
|
name,
|
|
}: UseKnowledgeGraphFormFieldProps) {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<SwitchFormField
|
|
name={name}
|
|
label={t('chat.useKnowledgeGraph')}
|
|
tooltip={t('chat.useKnowledgeGraphTip')}
|
|
></SwitchFormField>
|
|
);
|
|
}
|