import { Play, Sparkles } from "lucide-react"; import { getOnboardingResumeStep } from "./model-onboarding-state"; import { trackOnboardingEvent } from "./onboarding-events"; interface OnboardingResumeCardProps { /** Called when the user clicks "Continue onboarding" */ onResume: () => void; } /** * A banner/card that appears when a user has previously started onboarding * but dismissed the modal without completing. It allows them to resume * from where they left off. */ export function OnboardingResumeCard({ onResume }: OnboardingResumeCardProps) { const resumeStep = getOnboardingResumeStep(); // Should not render if no resumable state exists if (!resumeStep) { return null; } const completedCount = resumeStep.completedSteps.length; const totalSteps = 3; // ai-setup, github, first-task const progressText = completedCount > 0 ? `${completedCount} of ${totalSteps} step${completedCount !== 1 ? "s" : ""} complete — You're on the ` : "You're on the "; return (

Continue Setup

{progressText}{resumeStep.label} step. Continue where you left off to complete your dashboard setup.

); }