'use client' import type { FC } from 'react' import type { HeaderItem } from '../headers-input' import { useTranslation } from 'react-i18next' import HeadersInput from '../headers-input' type HeadersSectionProps = { headers: HeaderItem[] onHeadersChange: (headers: HeaderItem[]) => void isCreate: boolean } const HeadersSection: FC = ({ headers, onHeadersChange, isCreate, }) => { const { t } = useTranslation() return (
{t('mcp.modal.headers', { ns: 'tools' })}
{t('mcp.modal.headersTip', { ns: 'tools' })}
item.key.trim()).length > 0} />
) } export default HeadersSection