"use client"; import { Link } from "@/i18n/navigation"; interface SwipeQuotaProps { vip: boolean; used: number; limit: number; remaining: number; t: (key: string) => string; } export default function SwipeQuota({ vip, used, limit, remaining, t }: SwipeQuotaProps) { if (vip) { return (
{t("vipUnlimited")}
); } const pct = Math.min(100, Math.round((used / Math.max(limit, 1)) * 100)); return (
{t("dailyQuota")} {remaining} / {limit}
{remaining <= 3 ? (

{t("quotaLow")}{" "} {t("upgradeVip")}

) : null}
); }