import React, { useEffect, useRef, useState } from 'react' import type { ComponentProps, FC } from 'react' import { useTranslation } from 'react-i18next' import { ChunkingMode } from '@/models/datasets' import classNames from '@/utils/classnames' import { Markdown } from '@/app/components/base/markdown' type IContentProps = ComponentProps<'textarea'> const Textarea: FC = React.memo(({ value, placeholder, className, disabled, ...rest }) => { return (