import React from 'react' import { useTranslation } from 'react-i18next' import Input from '@/app/components/base/input' type KnowledgeBaseInfoProps = { name: string description?: string onChange: (data: { name?: string; description?: string }) => void } const KnowledgeBaseInfo: React.FC = ({ name, description, onChange }) => { const { t } = useTranslation() const handleNameChange = (e: React.ChangeEvent) => { onChange({ name: e.target.value }) } const handleDescriptionChange = (e: React.ChangeEvent) => { onChange({ description: e.target.value }) } return (