"use client"
import Link from "next/link"
import { Award, AlertTriangle, Lightbulb, FileText, History, ArrowRight } from "lucide-react"
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/shared/components/ui/card"
import { Badge } from "@/shared/components/ui/badge"
import { Button } from "@/shared/components/ui/button"
import { EmptyState } from "@/shared/components/ui/empty-state"
import { formatDate } from "@/shared/lib/utils"
import { MasteryRadarChart } from "./mastery-radar-chart"
import type { DiagnosticReportWithDetails, MasteryRadarPoint, StudentMasterySummary } from "../types"
interface StudentDiagnosticViewProps {
summary: StudentMasterySummary | null
reports: DiagnosticReportWithDetails[]
classAverageMastery?: MasteryRadarPoint[]
}
export function StudentDiagnosticView({ summary, reports, classAverageMastery }: StudentDiagnosticViewProps) {
if (!summary) {
return (
{summary.studentName}
{summary.averageMastery.toFixed(1)}%
{summary.strengths.length}
{summary.weaknesses.length}
No strengths identified yet.
) : (No weaknesses identified.
) : ({latestReport.summary}
) : null} {latestReport.recommendations && latestReport.recommendations.length > 0 ? ({formatDate(r.createdAt)} {r.overallScore !== null ? ` · Overall: ${r.overallScore.toFixed(1)}%` : ""}