import { FeatureDto, FeaturesBlockDto } from "./FeaturesBlockUtils"; import CheckIcon from "../../../../../../components/ui/icons/CheckIcon"; import { Fragment } from "react"; import GridBlockUtils from "../../shared/grid/GridBlockUtils"; import { useApp } from "../../../../../../hooks"; import Link from "next/link"; export function FeaturesVariantCards({ item }: { item: FeaturesBlockDto }) { return (
{item.topText &&

{item.topText}

}

{item.headline}

{item.subheadline}

{item.items.map((feature, idx) => { return ( {feature.link ? ( <> {feature.link.href.startsWith("http") ? ( ) : ( )} ) : (
)}
); })}
); } function FeatureCard({ feature }: { feature: FeatureDto }) { const { t } = useApp(); return ( <>
{feature.img ? ( <> {feature.img.startsWith(" ) : feature.img.startsWith("http") ? ( {feature.name} ) : ( feature.img )} ) : (

{t(feature.name)}

{t(feature.description)}

{/* {feature.link?.href && ( {t(feature.link.text)} )} */}
); }