@@ -6,13 +6,14 @@ import Link from 'next/link'
66import { notFound } from 'next/navigation'
77
88import { Badge } from '@/components/ui/badge'
9- import { Button } from '@/components/ui/button'
109import { Card , CardContent , CardHeader , CardTitle } from '@/components/ui/card'
1110import { Avatar , AvatarFallback , AvatarImage } from '@/components/ui/avatar'
11+ import { BackButton } from '@/components/ui/back-button'
1212import { JsonViewer } from '@/components/agent/json-viewer'
1313import { EnhancedCopyButton } from '@/components/ui/enhanced-copy-button'
1414import { cn } from '@/lib/utils'
1515import { AgentUsageMetrics } from './agent-usage-metrics'
16+ import { Button } from '@/components/ui/button'
1617
1718interface AgentDetailPageProps {
1819 params : {
@@ -125,15 +126,9 @@ const AgentDetailPage = async ({ params }: AgentDetailPageProps) => {
125126
126127 return (
127128 < div className = "container mx-auto py-6 px-4" >
128- < div className = "max-w-4xl mx-auto" >
129- { /* Navigation */ }
129+ < div className = "max-w-4xl mx-auto" > { /* Navigation */ }
130130 < div className = "mb-6" >
131- < Link href = { `/publishers/${ params . id } ` } >
132- < Button variant = "ghost" className = "mb-4" >
133- < ArrowLeft className = "h-4 w-4 mr-2" />
134- Back to { publisherData . name }
135- </ Button >
136- </ Link >
131+ < BackButton />
137132 </ div >
138133
139134 { /* Agent Header */ }
@@ -148,11 +143,17 @@ const AgentDetailPage = async ({ params }: AgentDetailPageProps) => {
148143 </ Badge >
149144 </ div >
150145 < div className = "mb-2" >
151- < Link href = { `/publishers/${ publisherData . id } ` } className = "flex items-center gap-2 hover:opacity-80 transition-opacity" >
146+ < Link
147+ href = { `/publishers/${ publisherData . id } ` }
148+ className = "flex items-center gap-2 hover:opacity-80 transition-opacity"
149+ >
152150 < Avatar className = "h-6 w-6" >
153- < AvatarImage src = { publisherData . avatar_url || undefined } />
151+ < AvatarImage
152+ src = { publisherData . avatar_url || undefined }
153+ />
154154 < AvatarFallback className = "text-xs" >
155- { publisherData . name [ 0 ] ?. toUpperCase ( ) || publisherData . id [ 0 ] ?. toUpperCase ( ) }
155+ { publisherData . name [ 0 ] ?. toUpperCase ( ) ||
156+ publisherData . id [ 0 ] ?. toUpperCase ( ) }
156157 </ AvatarFallback >
157158 </ Avatar >
158159 < span className = "text-muted-foreground" >
0 commit comments