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

{tagLine}

)} {title && (

{title}

)} {body && (
)} {links && links.length > 0 && (
{links.map((link) => ( ))}
)}
{image && image.asset?._id && ( {image.alt )}
); }