'use client'

import { useRouter } from 'next/router'
import PoolDetailPage from '@/components/pools/PoolDetailPage'

export default function PoolAddressPage() {
  const router = useRouter()
  const raw = router.query.address
  const address = typeof raw === 'string' ? raw : ''

  if (!router.isReady) {
    return null
  }

  return <PoolDetailPage poolAddress={address} />
}
