'use client' import type { FC } from 'react' import { NumberField, NumberFieldGroup, NumberFieldInput } from '@langgenius/dify-ui/number-field' import { useId } from 'react' 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() const timeoutInputId = useId() const sseReadTimeoutInputId = useId() return ( <>
onTimeoutChange(value ?? 0)}> $['mcp.modal.timeoutPlaceholder'], { ns: 'tools' })} />
onSseReadTimeoutChange(value ?? 0)} > $['mcp.modal.timeoutPlaceholder'], { ns: 'tools' })} />
) } export default ConfigurationsSection