22import Sidebar from '@/components/playground/Sidebar/Sidebar'
33import { ChatArea } from '@/components/playground/ChatArea'
44import { Phase3Dashboard } from '@/components/phase3/Phase3Dashboard'
5+ import { BrandAgentManager } from '@/components/brand-agent/BrandAgentManager'
56import { Suspense , useState , useEffect } from 'react'
67import { Button } from '@/components/ui/button'
78import { Badge } from '@/components/ui/badge'
8- import { Brain , MessageSquare , Zap } from 'lucide-react'
9+ import { Brain , MessageSquare , Zap , Sparkles } from 'lucide-react'
910
1011export default function Home ( ) {
11- const [ activeMode , setActiveMode ] = useState < 'playground' | 'phase3' > ( 'playground' )
12+ const [ activeMode , setActiveMode ] = useState < 'playground' | 'phase3' | 'brand-agents' > ( 'playground' )
1213 const [ isHydrated , setIsHydrated ] = useState ( false )
1314
1415 useEffect ( ( ) => {
@@ -106,15 +107,42 @@ export default function Home() {
106107 New
107108 </ Badge >
108109 </ Button >
110+ < Button
111+ variant = { activeMode === 'brand-agents' ? 'default' : 'outline' }
112+ size = "lg"
113+ onClick = { ( ) => setActiveMode ( 'brand-agents' ) }
114+ className = { `transition-all duration-200 ${
115+ activeMode === 'brand-agents'
116+ ? 'bg-gradient-to-r from-purple-500 to-pink-600 hover:from-purple-600 hover:to-pink-700 shadow-lg shadow-purple-500/25'
117+ : 'hover:bg-purple-50 dark:hover:bg-slate-800 border-2'
118+ } `}
119+ >
120+ < Sparkles className = "mr-2 h-5 w-5" />
121+ Brand Agents
122+ < Badge variant = "secondary" className = "ml-2 bg-gradient-to-r from-orange-500 to-red-500 text-white border-0" >
123+ < Zap className = "mr-1 h-3 w-3" />
124+ Beta
125+ </ Badge >
126+ </ Button >
109127 </ div >
110128 </ div >
111129 < div className = "hidden md:flex items-center space-x-4" >
112130 < div className = "text-right" >
113131 < p className = "text-sm font-medium text-slate-700 dark:text-slate-300" >
114- { activeMode === 'playground' ? 'Interactive Agent Chat' : 'Integrated Semantic Agents' }
132+ { activeMode === 'playground'
133+ ? 'Interactive Agent Chat'
134+ : activeMode === 'phase3'
135+ ? 'Integrated Semantic Agents'
136+ : 'Brand Agent Platform'
137+ }
115138 </ p >
116139 < p className = "text-xs text-muted-foreground" >
117- { activeMode === 'playground' ? 'Real-time AI conversations' : 'Advanced agent management' }
140+ { activeMode === 'playground'
141+ ? 'Real-time AI conversations'
142+ : activeMode === 'phase3'
143+ ? 'Advanced agent management'
144+ : 'AI-powered customer engagement'
145+ }
118146 </ p >
119147 </ div >
120148 < div className = "w-2 h-2 rounded-full bg-green-500 animate-pulse shadow-lg shadow-green-500/50" > </ div >
@@ -129,10 +157,14 @@ export default function Home() {
129157 < Sidebar />
130158 < ChatArea />
131159 </ div >
132- ) : (
160+ ) : activeMode === 'phase3' ? (
133161 < div className = "h-full" >
134162 < Phase3Dashboard />
135163 </ div >
164+ ) : (
165+ < div className = "h-full" >
166+ < BrandAgentManager />
167+ </ div >
136168 ) }
137169 </ div >
138170 </ div >
0 commit comments