import YogaImageComponent from "@/components/yoga.image.component"; import {YogaTextWithImageComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-text-with-image-component"; import {StrapiFile} from "@/types/types"; import strapiApi from "@/api/strapi/strapi-api"; export interface Props{ config: YogaTextWithImageComponent_Plain } export default function TextWithRightImage ({config: { title,header,image,description,button }}: Props){ const strapiFile = image as StrapiFile; const imageUrl = strapiApi.getImageUrl(strapiFile?.url) return (
{title}

{header}

{description}

{button && {button.label}}
) }