import type { Metadata } from 'next' import { getLocale } from 'next-intl/server' import TradesPageClient from './TradesPageClient' const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com' export async function generateMetadata(): Promise { const locale = await getLocale() const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json const title = isZh ? '交易执行与持仓' : 'Trades & Open Positions' const description = isZh ? '查看当前持仓、历史成交、按信号来源拆分的盈亏,以及机器人是否已经具备真实执行条件。' : 'Review open positions, historical executions, source-level P&L, and whether the bot is ready for live trading.' return { title, description, alternates: { canonical: `${siteUrl}/${locale}/trades`, languages: { en: `${siteUrl}/en/trades`, }, }, } } export default function TradesPage() { return }