|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
import { useState, useEffect } from "react";
|
|
|
import { useSession } from "next-auth/react";
|
|
|
-import { useChat } from "@/hooks/useChat";
|
|
|
+import { useChat, MAX_MESSAGES } from "@/hooks/useChat";
|
|
|
import { useChatEffects } from "@/hooks/useChatEffects";
|
|
|
import { ChatHeader } from "./ChatHeader";
|
|
|
import { WelcomeMessage } from "./WelcomeMessage";
|
|
|
@@ -17,8 +17,6 @@ import { ResetConfirmationModal } from "./ResetConfirmationModal";
|
|
|
import { AppointmentModalFromChat } from "./AppointmentModalFromChat";
|
|
|
import { MedicalAlertBanner } from "./MedicalAlertBanner";
|
|
|
|
|
|
-const MAX_MESSAGES = 3;
|
|
|
-
|
|
|
export const ChatInterface = () => {
|
|
|
const { data: session } = useSession();
|
|
|
const [showReportModal, setShowReportModal] = useState(false);
|