oceddyyy commited on
Commit
2997993
·
verified ·
1 Parent(s): 64168df

Update src/components/ChatInterface.tsx

Browse files
Files changed (1) hide show
  1. src/components/ChatInterface.tsx +4 -4
src/components/ChatInterface.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { useState, useRef, useEffect } from 'react';
2
  import { Send, MessageCircle, Settings, Search, BarChart3, User, Bot, Sparkles, HelpCircle, Moon, Sun, Globe, Database, BookOpen, Crown, Zap, Menu, ChevronLeft, ChevronRight, ThumbsUp, ThumbsDown, MessageSquare } from 'lucide-react';
3
  import { Button } from './ui/button';
4
  import { Input } from './ui/input';
@@ -14,7 +14,7 @@ interface ChatMessage {
14
  isUser: boolean;
15
  timestamp: Date;
16
  isPlusResponse?: boolean;
17
- sources?: Array<{ name: string; icon: JSX.Element; url?: string }>;
18
  }
19
 
20
  export function ChatInterface() {
@@ -25,7 +25,7 @@ export function ChatInterface() {
25
  const [isDarkMode, setIsDarkMode] = useState(false);
26
  const [isUnivAiPlusMode, setIsUnivAiPlusMode] = useState(false);
27
  const [hasUsedPlusResponse, setHasUsedPlusResponse] = useState(false);
28
- const [currentSources, setCurrentSources] = useState<Array<{ name: string; icon: JSX.Element; url?: string }>>([]);
29
  const [showFeedback, setShowFeedback] = useState(false);
30
  const [feedbackType, setFeedbackType] = useState<'positive' | 'negative' | null>(null);
31
  const [feedbackComment, setFeedbackComment] = useState('');
@@ -769,4 +769,4 @@ export function ChatInterface() {
769
  </Sheet>
770
  </div>
771
  );
772
- }
 
1
+ import { useState, useRef, useEffect, type ReactNode } from 'react';
2
  import { Send, MessageCircle, Settings, Search, BarChart3, User, Bot, Sparkles, HelpCircle, Moon, Sun, Globe, Database, BookOpen, Crown, Zap, Menu, ChevronLeft, ChevronRight, ThumbsUp, ThumbsDown, MessageSquare } from 'lucide-react';
3
  import { Button } from './ui/button';
4
  import { Input } from './ui/input';
 
14
  isUser: boolean;
15
  timestamp: Date;
16
  isPlusResponse?: boolean;
17
+ sources?: Array<{ name: string; icon: ReactNode; url?: string }>;
18
  }
19
 
20
  export function ChatInterface() {
 
25
  const [isDarkMode, setIsDarkMode] = useState(false);
26
  const [isUnivAiPlusMode, setIsUnivAiPlusMode] = useState(false);
27
  const [hasUsedPlusResponse, setHasUsedPlusResponse] = useState(false);
28
+ const [currentSources, setCurrentSources] = useState<Array<{ name: string; icon: ReactNode; url?: string }>>([]);
29
  const [showFeedback, setShowFeedback] = useState(false);
30
  const [feedbackType, setFeedbackType] = useState<'positive' | 'negative' | null>(null);
31
  const [feedbackComment, setFeedbackComment] = useState('');
 
769
  </Sheet>
770
  </div>
771
  );
772
+ }