"use client"; import Image from "next/image"; import { useApp } from "@/contexts/AppContext"; interface RoleIndicator { icon: string; label: string; current: number; target: number; } interface TeamTVLCardProps { currentTVL: string; targetTVL?: string; progressPercent: number; members: number; roles: RoleIndicator[]; loading?: boolean; } export default function TeamTVLCard({ currentTVL = "$8.5M", targetTVL = "$10M", progressPercent = 85, members = 12, roles = [], loading = false, }: TeamTVLCardProps) { const { t } = useApp(); return (
{/* Header */}
{t("points.teamTVLReward")}
{/* Description */}

{t("points.buildYourTeam")}

{/* Progress Section */}
{/* TVL Info */}
{t("points.currentTeamTVL")} {loading ? (
) : ( {currentTVL} / {targetTVL} )}
{/* Progress Bar */}
{/* Role Indicators */}
{roles.map((role, index) => (
{role.label}
{role.label} {role.current}/{role.target}
))}
{/* Members Badge */}
{t("points.membersCount").replace("{count}", members.toString())}
); }