1- import { Settings , Loader2 } from "lucide-react" ;
1+ import { Settings , Loader2 , MessageSquare , Sparkles } from "lucide-react" ;
22
33type GatewayState = "idle" | "checking" | "starting" | "running" | "failed" ;
44
@@ -8,9 +8,11 @@ interface HeroSectionProps {
88 gatewayState ?: GatewayState ;
99 gatewayError ?: string | null ;
1010 onOpenSettings : ( ) => void ;
11+ onOpenChat ?: ( ) => void ;
12+ onOpenSpotlight ?: ( ) => void ;
1113}
1214
13- export function HeroSection ( { connected, stale, gatewayState, gatewayError, onOpenSettings } : HeroSectionProps ) {
15+ export function HeroSection ( { connected, stale, gatewayState, gatewayError, onOpenSettings, onOpenChat , onOpenSpotlight } : HeroSectionProps ) {
1416 // Derive status text & color
1517 let statusText = connected ? "Online" : "Offline" ;
1618 let statusColor = connected ? "#34C759" : "#C7C7CC" ;
@@ -68,12 +70,32 @@ export function HeroSection({ connected, stale, gatewayState, gatewayError, onOp
6870 </ div >
6971 </ div >
7072
71- < button
72- onClick = { onOpenSettings }
73- className = "flex items-center justify-center w-7 h-7 rounded-lg hover:bg-[#E8E8ED] transition-colors"
74- >
75- < Settings size = { 16 } strokeWidth = { 1.6 } className = "text-[#AEAEB2]" />
76- </ button >
73+ < div className = "flex items-center gap-1" >
74+ { onOpenSpotlight && (
75+ < button
76+ onClick = { onOpenSpotlight }
77+ className = "flex items-center justify-center w-7 h-7 rounded-lg hover:bg-[#E8E8ED] transition-colors"
78+ title = "Spotlight (⌘⇧X)"
79+ >
80+ < Sparkles size = { 15 } strokeWidth = { 1.6 } className = "text-[#AEAEB2]" />
81+ </ button >
82+ ) }
83+ { onOpenChat && (
84+ < button
85+ onClick = { onOpenChat }
86+ className = "flex items-center justify-center w-7 h-7 rounded-lg hover:bg-[#E8E8ED] transition-colors"
87+ title = "Chat"
88+ >
89+ < MessageSquare size = { 15 } strokeWidth = { 1.6 } className = "text-[#AEAEB2]" />
90+ </ button >
91+ ) }
92+ < button
93+ onClick = { onOpenSettings }
94+ className = "flex items-center justify-center w-7 h-7 rounded-lg hover:bg-[#E8E8ED] transition-colors"
95+ >
96+ < Settings size = { 16 } strokeWidth = { 1.6 } className = "text-[#AEAEB2]" />
97+ </ button >
98+ </ div >
7799 </ div >
78100 { gatewayState === "failed" && shortError && (
79101 < div className = "px-5 pb-2 -mt-1" >
0 commit comments