import type { Metadata } from 'next'
import { ObserverProjectDetail } from '@/components/observer/observer-project-detail'

export const metadata: Metadata = { title: 'Project Detail' }
export const dynamic = 'force-dynamic'

export default async function ObserverProjectDetailPage({
  params,
  searchParams,
}: {
  params: Promise<{ projectId: string }>
  searchParams: Promise<{ round?: string }>
}) {
  const { projectId } = await params
  const sp = await searchParams

  return <ObserverProjectDetail projectId={projectId} initialRoundId={sp.round} />
}
