|
|
|
|
@ -29,6 +29,7 @@ import type { FileUpload } from '@/app/components/base/features/types'
|
|
|
|
|
import { TransferMethod } from '@/types/app'
|
|
|
|
|
|
|
|
|
|
type ChatInputAreaProps = {
|
|
|
|
|
botName?: string
|
|
|
|
|
showFeatureBar?: boolean
|
|
|
|
|
showFileUpload?: boolean
|
|
|
|
|
featureBarDisabled?: boolean
|
|
|
|
|
@ -43,6 +44,7 @@ type ChatInputAreaProps = {
|
|
|
|
|
disabled?: boolean
|
|
|
|
|
}
|
|
|
|
|
const ChatInputArea = ({
|
|
|
|
|
botName,
|
|
|
|
|
showFeatureBar,
|
|
|
|
|
showFileUpload,
|
|
|
|
|
featureBarDisabled,
|
|
|
|
|
@ -192,7 +194,7 @@ const ChatInputArea = ({
|
|
|
|
|
className={cn(
|
|
|
|
|
'body-lg-regular w-full resize-none bg-transparent p-1 leading-6 text-text-tertiary outline-none',
|
|
|
|
|
)}
|
|
|
|
|
placeholder={t('common.chat.inputPlaceholder') || ''}
|
|
|
|
|
placeholder={t('common.chat.inputPlaceholder', { botName }) || ''}
|
|
|
|
|
autoFocus
|
|
|
|
|
minRows={1}
|
|
|
|
|
onResize={handleTextareaResize}
|
|
|
|
|
|