"use client"; import React, { useState, useRef, useEffect } from 'react'; import { Send, Plus, Menu, Search, Archive, Trash2, Edit3, MessageSquare, User, Bot, Copy, ThumbsUp, ThumbsDown, RotateCcw, Share, MoreHorizontal, Image, Video, FileText, Code, Table, Music, Mic, Settings, Zap, Brain, Sparkles, BarChart2, Clock, Globe, Lock, Unlock, Book, Feather, Camera, Film, Headphones, Download, Upload, Link, Mail, AlertCircle, CheckCircle, HelpCircle, Info, Star, Heart, Award, Gift, Coffee, ShoppingCart, CreditCard, Key, Map, Navigation, Phone, Tag, Watch, Wifi, Cloud, Sun, Moon, Umbrella, Droplet, Wind } from 'lucide-react'; const ChatPage = () => { const [messages, setMessages] = useState([ { id: 1, type: 'assistant', content: "Hello! I'm General Bots, a large language model by Pragmatismo. How can I help you today?", timestamp: new Date().toISOString() } ]); const [input, setInput] = useState(''); const [isTyping, setIsTyping] = useState(false); const [sidebarOpen, setSidebarOpen] = useState(true); const [conversations, setConversations] = useState([ { id: 1, title: 'Current Chat', timestamp: new Date(), active: true }, { id: 2, title: 'Previous Conversation', timestamp: new Date(Date.now() - 86400000), active: false }, { id: 3, title: 'Code Review Discussion', timestamp: new Date(Date.now() - 172800000), active: false }, { id: 4, title: 'Project Planning', timestamp: new Date(Date.now() - 259200000), active: false }, ]); const [activeMode, setActiveMode] = useState('assistant'); const messagesEndRef = useRef(null); const textareaRef = useRef(null); // Mode buttons const modeButtons = [ { id: 'deep-think', icon: , label: 'Deep Think' }, { id: 'web', icon: , label: 'Web' }, { id: 'creative', icon: , label: 'Creative' }, { id: 'image', icon: , label: 'Image' }, { id: 'video', icon: