Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
import { Textarea } from '@langgenius/dify-ui/textarea'
import { memo, useId } from 'react'
import { useTranslation } from 'react-i18next'
type SummaryTextProps = {
value?: string
onChange?: (value: string) => void
disabled?: boolean
}
const SummaryText = ({ value, onChange, disabled }: SummaryTextProps) => {
const { t } = useTranslation(['datasetDocuments'])
const labelId = useId()
return (
<div className="space-y-1">
<div id={labelId} className="system-xs-medium-uppercase text-text-tertiary">
{t(($) => $['segment.summary'], { ns: 'datasetDocuments' })}
</div>
<Textarea
aria-labelledby={labelId}
className="field-sizing-content max-h-36 min-h-6 w-full resize-none overflow-y-auto rounded-none border-none bg-transparent p-0 body-sm-regular leading-6 text-text-secondary hover:border-none hover:bg-transparent focus:border-none focus:bg-transparent focus-visible:ring-inset disabled:bg-transparent disabled:text-text-secondary disabled:hover:bg-transparent"
placeholder={t(($) => $['segment.summaryPlaceholder'], { ns: 'datasetDocuments' })}
rows={1}
value={value ?? ''}
onValueChange={(value) => onChange?.(value)}
disabled={disabled}
/>
</div>
)
}
export default memo(SummaryText)