@@ -27,7 +44,30 @@ export default function Conversation() {
})}
{messages.length === 0 && }
-
+
+ {status === 'loading' ? (
+
+ ) : (
+
{
+ if (inputRef.current?.textContent) {
+ handleQuestion(inputRef.current.textContent);
+ inputRef.current.textContent = '';
+ }
+ }}
+ src={Send}
+ className="relative right-9 cursor-pointer"
+ >
+ )}
+
);
}
diff --git a/frontend/src/conversation/ConversationInput.tsx b/frontend/src/conversation/ConversationInput.tsx
deleted file mode 100644
index 9dca9f7..0000000
--- a/frontend/src/conversation/ConversationInput.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import Send from './../assets/send.svg';
-
-export default function ConversationInput({
- className,
-}: {
- className?: string;
-}) {
- return (
-