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

{t(item.headline)}

} {item.description &&

{t(item.description)}

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