"use client"; /** * Success Display * * COPIED VERBATIM FROM: components/onboarding/steps/success-step.tsx:53-117 * Renders success hero and next steps cards */ import { CheckCircle2 } from "lucide-react"; import { ANIMATION_CLASSES, getNextStepsLabelStyle, getStaggerStyle, getSuccessHeroStyle, STAGGER_PRESETS, } from "../animations"; import { cx } from "../lib/utils"; import { OnboardingButton } from "../primitives/onboarding-button"; import { OnboardingCard } from "../primitives/onboarding-card"; import type { SuccessDisplayProps } from "../types/fields"; export function SuccessDisplay({ title = "You're all set!", message = "Your setup is complete. Here's what you can do next.", icon, nextSteps = [], }: SuccessDisplayProps) { return (
{/* Hero section */}
{icon || }

{title}

{message}

{/* Next steps section */} {nextSteps.length > 0 && (

Next steps

{nextSteps.map((step, index) => ( {step.icon && (
{step.icon}
)}
{step.title} {step.optional && ( (optional) )}
{step.description && (

{step.description}

)}
{step.actionText && step.onAction && ( {step.actionText} )}
))}
)}
); }