import clsx from "clsx"; import { Fragment } from "react"; import { HeroBlockDto } from "./HeroBlockUtils"; import { useApp } from "../../../../../../hooks"; import Link from "next/link"; export function HeroVariantSimple({ item }: { item: HeroBlockDto }) { return (
{item.topText && ( {item.topText.text ?? ""}{" "} {item.topText.link && ( )}
{item.headline && (

{item.headline}

)} {item.description &&

{item.description}

}
{item.cta.map((item, idx) => { return ( {item.href.startsWith("http") ? ( {item.text} ) : ( {item.text} )} ); })}
{item.bottomText && ( {item.bottomText.text ?? ""}{" "} {item.bottomText.link?.href && ( <> {item.bottomText.link.href.startsWith("http") ? ( {item.bottomText.link.text ?? ""} ) : ( {item.bottomText.link.text ?? ""} )} )} )}
); }