"use client" import { CCData, DailyData } from './types' import { formatStreakCompact, computeStreak } from './utils' export default function StatsGrid({ totals, daily }: { totals: CCData['totals']; daily: DailyData[] }) { const streak = computeStreak(daily) return (
${totals.totalCost.toFixed(2)}
{(totals.totalTokens / 1000000).toFixed(1)}M
{daily.length} 🔥 {formatStreakCompact(streak)}
${(totals.totalCost / Math.max(daily.length, 1)).toFixed(2)}