• Gets the spotlight element config for a specific onboarding step.

    Parameters

    Returns undefined | ElementSpotlight

    The spotlight config, or undefined if no element should be highlighted.

    export function getSpotlightForStep(
    step: OnboardingStep,
    ): ElementSpotlight | undefined {
    const config = STEP_ROUTE_CONFIG.find((c) => c.step === step);
    return config?.spotlight;
    }