diff --git a/web/app/components/base/chat/chat/chat-input-area/index.tsx b/web/app/components/base/chat/chat/chat-input-area/index.tsx index c1df858d95..032b37b6aa 100644 --- a/web/app/components/base/chat/chat/chat-input-area/index.tsx +++ b/web/app/components/base/chat/chat/chat-input-area/index.tsx @@ -10,7 +10,6 @@ import Recorder from 'js-audio-recorder' import type { EnableType, OnSend, - VisionConfig, } from '../../types' import type { Theme } from '../../embedded-chatbot/theme/theme-context' import { useTextAreaHeight } from './hooks' @@ -20,14 +19,22 @@ import { FileListFlexOperation } from '@/app/components/base/file-uploader' import { FileContextProvider } from '@/app/components/base/file-uploader/store' import VoiceInput from '@/app/components/base/voice-input' import { useToastContext } from '@/app/components/base/toast' +import FeatureBar from '@/app/components/base/features/new-feature-panel/feature-bar' +import type { FileUpload } from '@/app/components/base/features/types' type ChatInputAreaProps = { - visionConfig?: VisionConfig + showFeatureBar?: boolean + featureBarDisabled?: boolean + onFeatureBarClick?: (state: boolean) => void + visionConfig?: FileUpload speechToTextConfig?: EnableType onSend?: OnSend theme?: Theme | null } const ChatInputArea = ({ + showFeatureBar, + featureBarDisabled, + onFeatureBarClick, visionConfig, speechToTextConfig = { enabled: true }, onSend, @@ -86,6 +93,7 @@ const ChatInputArea = ({ const operation = ( -
-
- -
-
-
- {query} + <> +
+
+ +
+
+
+ {query} +
+