import { featurePage } from "~/lib/marketing/features"; import { TextLink } from "~/ui/TextLink"; import { cn } from "~/utils/cn"; import { DisplayTitle } from "./DisplayTitle"; import { FeatureDemo } from "./FeatureDemo"; /** Landing-page section that previews one feature page: copy on one side, its live demo on the other. */ export function Spotlight({ slug, flip = false }: { slug: string; flip?: boolean }) { const page = featurePage(slug); if (!page) throw new Error(`Unknown feature page: ${slug}`); return (

{page.lede}

    {page.highlights.slice(0, 2).map((item) => (
  • {item.title}

    {item.body}

  • ))}
Read more about {page.nav.toLowerCase()}
); }