import Link from 'next/link' /** * "Start here" diagnostics block: a highlighted panel with a short intro and a * row of numbered step cards. Each step can link to a section (href) and/or * show the relevant command. * * @param {string} [eyebrow='Start here'] - Small uppercase label * @param {string} title - Panel title (e.g. "Collect diagnostics first") * @param {string} [id] - Optional id for the title anchor * @param {string} [description] - Intro text below the title * @param {Array<{label: string, title: string, command?: string, href?: string, hint?: string}>} steps */ export function TroubleshootingStart({ eyebrow = 'Start here', title, id, description, steps = [], }) { return (

{eyebrow}

{title && (

{title}

)} {description && (

{description}

)} {steps.length > 0 && (
{steps.map((step) => { const content = ( <>

{step.label}

{step.title} {step.href && ( )}

{step.command && ( {step.command} )} {step.hint && (

{step.hint}

)} ) const base = 'block rounded-xl bg-white p-4 ring-1 ring-inset ring-zinc-900/7.5 dark:bg-white/5 dark:ring-white/10' return step.href ? ( {content} ) : (
{content}
) })}
)}
) }