import YogaImageComponent from "@/components/yoga.image.component"; import { YogaSubscribeNowComponent_Plain } from "@/types/generated-strapi-interfaces/api/yoga-subscribe-now-component"; import clsx from "clsx"; import {StrapiFile} from "@/types/types"; import strapiApi from "@/api/strapi/strapi-api"; import styles from './subscribe.component.module.css' export interface Props{ config: YogaSubscribeNowComponent_Plain, styleClass?: string, } const SubscribeComponent = ({ config: {title,header,placeHolderEmail,buttonSubscribeLabel, image = undefined}, styleClass }: Props) => { const imageFile: StrapiFile = image as StrapiFile; if (!imageFile || !imageFile.url) { return null } return (
{title}

{header}

); } export default SubscribeComponent;