'use client'

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

/**
 * Redirect /market to /auctions
 * This page is kept for backwards compatibility
 */
export default function MarketRedirect() {
  const router = useRouter()
  
  useEffect(() => {
    router.replace('/auctions')
  }, [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>
  )
}
