'use client' import type { FC } from 'react' import { NumberField, NumberFieldGroup, NumberFieldInput } from '@langgenius/dify-ui/number-field' import { useTranslation } from 'react-i18next' type ConfigurationsSectionProps = { timeout: number onTimeoutChange: (timeout: number) => void sseReadTimeout: number onSseReadTimeoutChange: (timeout: number) => void } const ConfigurationsSection: FC = ({ timeout, onTimeoutChange, sseReadTimeout, onSseReadTimeoutChange, }) => { const { t } = useTranslation() return ( <>
{t(($) => $['mcp.modal.timeout'], { ns: 'tools' })}
onTimeoutChange(value ?? 0)}> $['mcp.modal.timeoutPlaceholder'], { ns: 'tools' })} />
{t(($) => $['mcp.modal.sseReadTimeout'], { ns: 'tools' })}
onSseReadTimeoutChange(value ?? 0)} > $['mcp.modal.timeoutPlaceholder'], { ns: 'tools' })} />
) } export default ConfigurationsSection