'use client'

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

/**
 * Redirect /auctions to /market
 * This page is kept for backwards compatibility
 */
export default function AuctionsRedirect() {
  const router = useRouter()

  useEffect(() => {
    router.replace('/market')
  }, [router])

  return (
    <div className="min-h-screen flex items-center justify-center bg-background">
      <div className="text-center">
        <div className="w-6 h-6 border-2 border-accent border-t-transparent rounded-full animate-spin mx-auto mb-4" />
        <p className="text-foreground-muted">Redirecting to Market...</p>
      </div>
    </div>
  )
}
