import Image from "next/image";
import type { ReactNode } from "react";
export function PageHero({
eyebrow,
title,
lead,
tags,
photo,
variant = "solid",
children,
}: {
eyebrow: string;
title: ReactNode;
lead?: string;
tags?: ReactNode;
photo?: { src: string; alt?: string };
variant?: "solid" | "photo";
children?: ReactNode;
}) {
if (variant === "photo" && photo) {
return (
{eyebrow}
{title}
{lead && (
{lead}
)}
{tags &&
{tags}
}
{children}
);
}
return (
{eyebrow}
{title}
{lead && (
{lead}
)}
{tags &&
{tags}
}
{children}
);
}