import { cn } from "~/lib/utils" export const BoostProgress = ({ level, boostCount, remainingBoostsToLevelUp, lastValidBoost, }: { level: number boostCount: number remainingBoostsToLevelUp: number lastValidBoost: { hash: string | null expiresAt: string } | null }) => { const percentage = (boostCount / (boostCount + remainingBoostsToLevelUp)) * 100 const nextLevel = level + 1 return (
{boostCount}
Lv. {level} Lv. {nextLevel}
{remainingBoostsToLevelUp} more boost will unlock the next level of benefits! {lastValidBoost && ( You can't add more boost points right now, but feel free to keep boosting. Your current boost will expire on {new Date(lastValidBoost.expiresAt).toLocaleDateString()}. )}
) }