AIUI Chat
Select or create a conversation to start chatting
import { useEffect, useRef } from 'react'; import { useChatStore } from '@/stores/chatStore'; import Sidebar from '@/components/layout/Sidebar'; import ChatArea from '@/components/chat/ChatArea'; import SettingsModal from '@/components/chat/SettingsModal'; import KnowledgePanel from '@/components/knowledge/KnowledgePanel'; import { Menu, Settings } from 'lucide-react'; function App() { const { conversations, currentConversationId, isSidebarOpen, isSettingsOpen, createConversation, toggleSidebar, toggleSettings, } = useChatStore(); const initialized = useRef(false); useEffect(() => { if (!initialized.current && conversations.length === 0) { initialized.current = true; createConversation(); } }, [conversations.length, createConversation]); return (
Select or create a conversation to start chatting