"use client"; import { ArrowRight, Upload } from "lucide-react"; import { labelForOnboardingGoal, type StudentStudyProfile, } from "@/lib/onboarding"; export function ExamPathModule({ profile, onSetup, onUpload, onGenerate, }: { profile: StudentStudyProfile | null; onSetup: () => void; onUpload: () => void; onGenerate: () => void; }) { if (!profile || profile.onboardingSkipped) { return (

Your exam path

Set up your exam path

DocDoe can rank topics better when it knows your board, class, and subjects.

); } const context = [profile.board, profile.classLevel, profile.stream].filter(Boolean).join(" / "); const subjects = profile.subjects?.slice(0, 3).join(", ") || profile.subject || "Add subjects"; const hasFirstMaterial = profile.firstUploadStatus === "ready" || profile.firstUploadStatus === "received"; return (

{context || "Study profile set"}

Goal: {labelForOnboardingGoal(profile.primaryGoal)} / Subjects: {subjects}

{hasFirstMaterial ? ( ) : ( <> )}
); }