diff --git a/src/components/agent/agent-panel.tsx b/src/components/agent/agent-panel.tsx index 168bf52..1db9c61 100644 --- a/src/components/agent/agent-panel.tsx +++ b/src/components/agent/agent-panel.tsx @@ -1,17 +1,11 @@ "use client" -import { useCallback, useRef } from "react" +import { useRef } from "react" import { X, Bot, Send, Loader2 } from "lucide-react" import { cn } from "@/lib/utils" import { MessageList } from "./message-list" import { useAgentChat } from "./use-agent-chat" -const EXAMPLE_QUESTIONS = [ - "What are the most discussed topics?", - "Who talks about Bitcoin?", - "Summarise recent clips about AI", -] - interface AgentPanelProps { onClose: () => void } @@ -21,15 +15,6 @@ export function AgentPanel({ onClose }: AgentPanelProps) { useAgentChat() const textareaRef = useRef(null) - const handleExampleClick = useCallback( - (question: string) => { - setInput(question) - textareaRef.current?.focus() - handleSubmit(question) - }, - [handleSubmit, setInput] - ) - const isEmpty = messages.length === 0 return ( @@ -68,22 +53,7 @@ export function AgentPanel({ onClose }: AgentPanelProps) {

-
- {EXAMPLE_QUESTIONS.map((q) => ( - - ))} -
+ ) : (