"use client"; import Link from "next/link"; import { useI18n } from "@/hooks/useI18n"; export function EntitlementRequiredClient({ nextPath }: { nextPath: string }) { const { locale } = useI18n(); const isEn = locale === "en-US"; const copy = { title: isEn ? "Sign in required" : "需要登录方可访问此页面", desc: isEn ? "This page requires you to sign in. Please sign in and try again." : "本页面需要登录权限。请登录后重试。", signIn: isEn ? "Sign in" : "去登录", backHome: isEn ? "Back to Home" : "返回首页", legacyNote: isEn ? "Legacy token mode still supported" : "传统令牌模式仍支持", requestedPath: isEn ? "Requested path" : "请求路径", }; return (

{copy.title}

{copy.desc}

{copy.signIn} {copy.backHome}

{copy.legacyNote}{" "} ?access_token=<your-token>
{copy.requestedPath}: {nextPath}

); }