"use client"
import { TrendingUp, TrendingDown, Brain, Zap } from "lucide-react"
import { Card, CardContent } from "@/components/ui/card"
import Link from "next/link"
const DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
const BAR_HEIGHTS = [55, 70, 45, 90, 80, 60, 75] // % heights
const ACCURACY = [82, 78, 91, 88, 85, 79, 93]
export function WeeklyProgressReport() {
const avgAccuracy = Math.round(ACCURACY.reduce((a, b) => a + b, 0) / ACCURACY.length)
const trend = ACCURACY[ACCURACY.length - 1] - ACCURACY[0]
const maxBar = Math.max(...BAR_HEIGHTS)
return (
{/* Summary chips */}
{avgAccuracy}% avg accuracy
= 0 ? "bg-[#00F0FF]/10 text-[#00F0FF] border-[#00F0FF]/20" : "bg-red-500/10 text-red-500 border-red-500/20"}`}>
{trend >= 0 ? : }
{trend >= 0 ? "+" : ""}{trend}% vs Mon
7/7 days active
{/* Bar Chart */}
{DAYS.map((day, i) => (
))}
{/* AI insight */}
You keep making sign errors in Thermodynamics. In your last 3 attempts, you've used the wrong sign for work done (W = -PΔV). Review the First Law of Thermodynamics — we've queued 3 practice questions for tomorrow.
💡 Tip: You perform best between 7-9 PM. Schedule difficult topics then.
)
}