/* eslint-disable */ "use client"; import { UUID } from "crypto"; import { useEffect } from "react"; import PageHeading from "@/lib/components/ui/PageHeading"; import useChatsContext from "@/lib/context/ChatsProvider/hooks/useChatsContext"; import { ChatInput, ChatMessages } from "../components"; interface ChatPageProps { params: { chatId: UUID; }; } export default function ChatPage({ params }: ChatPageProps) { const chatId: UUID | undefined = params.chatId; const { fetchChat, resetChat } = useChatsContext(); useEffect(() => { if (!chatId) { resetChat(); } fetchChat(chatId); }, []); return (
); }