--- // biome-ignore-all lint/correctness/noUnusedVariables: Astro template consumes frontmatter values. interface Props { // Canonical single-container command. Keep in sync with HeroQuickstart.astro, // DOCKERHUB.md, README.md, and apps/docs/guide/getting-started.md. docker: string; // Optional REST API example (already newline-formatted). curl?: string; dockerLabel?: string; curlLabel?: string; } const { docker, curl, dockerLabel = "Self-host in one command", curlLabel = "Process a file over the REST API", } = Astro.props; const blocks = [ ...(docker ? [{ label: dockerLabel, code: docker }] : []), ...(curl ? [{ label: curlLabel, code: curl }] : []), ]; ---
{blocks.map((b) => (

{b.label}

))}