import { redirect } from 'next/navigation'

/**
 * Redirect /tld-pricing/[tld] to /discover/[tld]
 * This page is kept for backwards compatibility
 */
export default async function TldDetailRedirect({
  params,
}: {
  params: Promise<{ tld: string }>
}) {
  const { tld } = await params
  redirect(`/discover/${String(tld).toLowerCase()}`)
}
