import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import SectionContainer from "@/components/ui/section-container"; import Link from "next/link"; import PortableTextRenderer from "@/components/portable-text-renderer"; import { PAGE_QUERY_RESULT } from "@/sanity.types"; type Cta1Props = Extract< NonNullable["blocks"]>[number], { _type: "cta-1" } >; export default function Cta1({ padding, colorVariant, sectionWidth = "default", stackAlign = "left", tagLine, title, body, links, }: Cta1Props) { const isNarrow = sectionWidth === "narrow"; return (
{tagLine && (

{tagLine}

)}

{title}

{body && }
{links && links.length > 0 && (
{links && links.length > 0 && links.map((link) => ( ))}
)}
); }