import {YogaPrice_Plain} from "@/types/generated-strapi-interfaces/api/yoga-price"; import YogaImageComponent from "@/components/yoga.image.component"; import {StrapiFile} from "@/types/types"; import strapiApi from "@/api/strapi/strapi-api"; export interface Props{ config: YogaPrice_Plain } export function PriceItemComponent({config: {header,option1,option2,price,icon, image,buttonText}} : Props){ // there are some issues with the strapi generated types const iconFile: StrapiFile = icon as StrapiFile; const imageFile: StrapiFile = image as StrapiFile; console.info("image:",strapiApi.getImageUrl(imageFile?.url)); return (