chat scroll trial 1

This commit is contained in:
YasinOnm08 2024-10-01 10:39:21 +02:00
parent 8c14760027
commit 853967f8e7
2 changed files with 18 additions and 14 deletions

View file

@ -1,6 +1,6 @@
"use client"
import React, { use, useEffect, useRef, useState } from "react";
import ConversationFrontend from "../components/ConversationFrontend";
import ConversationFrontend from '../components/ConversationFrontend';
import InputFrontend from "../components/InputFrontend";
import { sendToVoiceRecognition } from "./voice_backend"
import axios from "axios";
@ -52,6 +52,7 @@ const InputOutputBackend: React.FC = () => {
}, [preferredCurrency, preferredLanguage, timeFormat, dateFormat, preferredMeasurement, timeZone]);
const conversationRef = useRef<HTMLDivElement>(null)
const [copyClicked, setCopyClicked] = useState(false)
const [accessToken, setAccessToken] = useState("")
const postWorkerRef = useRef<Worker | null>(null)
@ -266,6 +267,7 @@ const InputOutputBackend: React.FC = () => {
return (
<>
<ConversationFrontend
ref={conversationRef}
messages={messages}
onResendClick={handleResendClick}
onEditClick={handleEditClick}