import { Button } from "@/components/ui/button"; import Link from "next/link"; import PortableTextRenderer from "@/components/portable-text-renderer"; import { PAGE_QUERY_RESULT } from "@/sanity.types"; type Hero2Props = Extract< NonNullable["blocks"]>[number], { _type: "hero-2" } >; export default function Hero2({ tagLine, title, body, links }: Hero2Props) { return (
{tagLine && (

{tagLine}

)} {title && (

{title}

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