diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx index 9bdf14638..6892373ad 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx @@ -18,7 +18,35 @@ const TextAreaWrapper = ({ inputRef, setInputFocus, files, + isDragging, }) => { + const getPlaceholderText = ( + isDragging: boolean, + noInput: boolean, + ): string => { + if (isDragging) { + return "Drop here"; + } else if (noInput) { + return CHAT_INPUT_PLACEHOLDER; + } else { + return CHAT_INPUT_PLACEHOLDER_SEND; + } + }; + + const lockClass = + lockChat || saveLoading + ? "form-modal-lock-true bg-input" + : noInput + ? "form-modal-no-input bg-input" + : "form-modal-lock-false bg-background"; + + const fileClass = + files.length > 0 + ? "rounded-b-md border-t-0 border-border focus:border-t-0 focus:border-ring" + : "rounded-md border-t-2 border-border focus:border-ring"; + + const additionalClassNames = "form-modal-lockchat pl-10"; + return (