import { redirect } from 'next/navigation'

/**
 * Legacy route. The old "Signals" hub was replaced by two top-level nav
 * tabs (Trump / BTC). Anything still pointing here (old links, sitemap,
 * bookmarks) lands on the Trump system page.
 *
 * NOTE: Next.js 15+ made `params` async. Without `await` we'd interpolate
 * the still-pending Promise as `undefined` and ship users to /undefined/trump.
 */
export default async function LegacySignalsRedirect({
  params,
}: {
  params: Promise<{ locale: string }>
}) {
  const { locale } = await params
  redirect(`/${locale}/trump`)
}
