'use client'

import { use, useEffect } from 'react'
import { useRouter } from 'next/navigation'

// Redirect to round details page - filtering is now integrated there
export default function FilteringDashboardPage({
  params,
}: {
  params: Promise<{ id: string }>
}) {
  const { id: roundId } = use(params)
  const router = useRouter()

  useEffect(() => {
    router.replace(`/admin/rounds/${roundId}`)
  }, [router, roundId])

  return (
    <div className="flex items-center justify-center py-12">
      <p className="text-muted-foreground">Redirecting to round details...</p>
    </div>
  )
}
