"use client"; import Link from "next/link"; import { AlertTriangle } from "lucide-react"; import { useTranslation } from "react-i18next"; import { usePendingWalletReconcile } from "@/hooks/use-pending-wallet-reconcile"; /** 钱包盘:顶栏铃铛隐藏后,在钱包页展示待对账提醒入口 */ export function WalletPendingReconcileBanner() { const { t } = useTranslation("player"); const { pending, unreadCount, hasPending } = usePendingWalletReconcile(); if (!hasPending) { return null; } return (

{t("wallet.pendingTitle")}

{t("wallet.pendingDescription")}

{unreadCount > 0 ? (

{t("notifications.unreadCount", { count: unreadCount })}

) : null} {t("wallet.viewPendingReconcile", { defaultValue: "查看待对账详情({{count}})", count: pending.length, })}
); }