"use client"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { useChatContext } from "@/lib/store/ChatContext"; import React from "react"; import ChatHistory from "./ChatHistory"; import MessageInput from "./MessageInput"; import ResearchControls from "./ResearchControls"; import ChatLayout from "./ui/ChatLayout"; import ConversationList from "./ui/ConversationList"; const ChatInterface = () => { const { chatState, conversations, abortResearch, userInputRef, researchOptions, sendMessage, newConversation, selectConversation, deleteConversation, deleteAllConversations, setResearchOptions, connectionMode } = useChatContext(); const sidebar = ; const mainContent = (
{chatState.error && ( Error {chatState.error} )}
); return } />; }; export default ChatInterface;