"use client"; import { motion } from "framer-motion"; interface DailyRingProps { xpEarned: number; goalXp: number; size?: number; strokeWidth?: number; } export function DailyRing({ xpEarned, goalXp, size = 140, strokeWidth = 12, }: DailyRingProps) { const radius = (size - strokeWidth) / 2; const circumference = 2 * Math.PI * radius; const progress = Math.min(xpEarned / goalXp, 1); const offset = circumference * (1 - progress); const goalMet = xpEarned >= goalXp; const pct = Math.round(progress * 100); return (