Files
ragflow/web/src/components/use-knowledge-graph-item.tsx
balibabu b44e65a12e Feat: Replace antd with shadcn and delete the template node. #10427 (#11693)
### 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)
2025-12-03 14:37:58 +08:00

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>
);
}