'use client' import { Sidebar } from '@/components/Sidebar' import { useLanguage } from '@/lib/LanguageContext' import { useTheme } from '@/lib/ThemeContext' import { useMessagesPage } from './_components/useMessagesPage' import { ConversationList } from './_components/ConversationList' import { ChatArea } from './_components/ChatArea' import { ContactInfoPanel } from './_components/ContactInfoPanel' import { NewConversationModal } from './_components/NewConversationModal' import { ContextMenu } from './_components/ContextMenu' export default function MessagesPage() { const { t } = useLanguage() const { isDark } = useTheme() const msg = useMessagesPage() return (
{/* Animated Background Blobs */}
{/* Conversations List */} {/* Chat Area */} {/* Contact Info Panel */} {msg.showContactInfo && msg.currentConversation && ( msg.setShowContactInfo(false)} isDark={isDark} /> )}
{/* Modals & Overlays */} {msg.showNewConversation && ( msg.setShowNewConversation(false)} /> )} {msg.contextMenu && ( msg.setContextMenu(null)} /> )} {/* Blob Animation Styles */}
) }