import type { Metadata } from 'next'
import { auth } from '@/lib/auth'
import { ObserverDashboardContent } from '@/components/observer/observer-dashboard-content'

export const metadata: Metadata = { title: 'Observer Dashboard' }
export const dynamic = 'force-dynamic'

export default async function ObserverDashboardPage() {
  const session = await auth()

  return <ObserverDashboardContent userName={session?.user?.name || undefined} />
}
