import YogaImageComponent from "@/components/yoga.image.component"; import {YogaBlogPost_Plain} from "@/types/generated-strapi-interfaces/api/yoga-blog-post"; import {StrapiFile} from "@/types/types"; import strapiApi from "@/api/strapi/strapi-api"; export interface Props { post: YogaBlogPost_Plain & {documentId?: string} } const BlogSinglePostComponent = ({post: {header,teaserImage,tags,documentId} }: Props) => { const teaserFile: StrapiFile = teaserImage as StrapiFile; const tagText = tags?.length ? tags[0].tag : null; return (
{tagText}

{header}

); } export default BlogSinglePostComponent;