Update frontend/src/components/ChatInterface.jsx
Browse files
frontend/src/components/ChatInterface.jsx
CHANGED
|
@@ -4,7 +4,7 @@ import Avatar from './Avatar.jsx';
|
|
| 4 |
import '../App.css';
|
| 5 |
|
| 6 |
const ChatInterface = ({ messages = [], setMessages = () => {}, onMessageSent = () => {}, activeConversationId,
|
| 7 |
-
saveBotResponse, toLogin }) => {
|
| 8 |
const [inputMessage, setInputMessage] = useState('');
|
| 9 |
const [isLoading, setIsLoading] = useState(false);
|
| 10 |
const messagesEndRef = useRef(null);
|
|
|
|
| 4 |
import '../App.css';
|
| 5 |
|
| 6 |
const ChatInterface = ({ messages = [], setMessages = () => {}, onMessageSent = () => {}, activeConversationId,
|
| 7 |
+
saveBotResponse, toLogin, onCreateNewConversation = () => {},onNewChat = () => {} }) => {
|
| 8 |
const [inputMessage, setInputMessage] = useState('');
|
| 9 |
const [isLoading, setIsLoading] = useState(false);
|
| 10 |
const messagesEndRef = useRef(null);
|