import Link from "next/link"; import type { ReactNode } from "react"; /** * DocsHero — editorial showpiece header for landing-style pages. * * Escapes prose scope to run its own type scale. Title accepts ReactNode so * callers can pass spans for brand-color emphasis (italic is avoided — * Chinese italic is a synthetic slant and reads as broken). */ export function DocsHero({ eyebrow, title, subtitle, }: { eyebrow?: string; title: ReactNode; subtitle?: ReactNode; }) { return (
{eyebrow ? (

{eyebrow}

) : null}

{title}

{subtitle ? (

{subtitle}

) : null}
); } /** * DocsFeatureGrid / DocsFeatureCard — kept for back-compat with any pages * still using the old card grid before the editorial migration. Prefer * / from editorial.tsx for showpiece pages. */ export function DocsFeatureGrid({ children }: { children: ReactNode }) { return (
{children}
); } export function DocsFeatureCard({ icon, title, description, href, }: { icon: ReactNode; title: string; description: string; href: string; }) { return (
{icon}
{title}

{description}

); }