From 849a095a7ca0c63ed53cca3a190d3a72b835bad9 Mon Sep 17 00:00:00 2001
From: pitoi
Date: Wed, 10 Jun 2026 10:58:22 +0000
Subject: [PATCH] Generated with Hive: Remove hard-coded example questions from
Graph Agent empty state
---
src/components/agent/agent-panel.tsx | 34 ++--------------------------
1 file changed, 2 insertions(+), 32 deletions(-)
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) => (
-
- ))}
-
+
) : (