import authors from 'lib/authors.json' import { NextSeo } from 'next-seo' import Image from 'next/image' import Link from 'next/link' import { useRouter } from 'next/router' import React from 'react' import CTABanner from '~/components/CTABanner' import DefaultLayout from '~/components/Layouts/Default' import { generateReadingTime } from '~/lib/helpers' import { MDXRemote } from 'next-mdx-remote' interface Props { components: React.ReactNode props: any } const LayoutComparison = ({ components, props }: Props) => { // @ts-ignore const content = props.blog.content const authorArray = props.blog.author.split(',') const author = [] for (let i = 0; i < authorArray.length; i++) { author.push( // @ts-ignore authors.find((authors: string) => { // @ts-ignore return authors.author_id === authorArray[i] }) ) } const { basePath } = useRouter() const NextCard = (props: any) => { const { post, label, className } = props return (

{label}

{post.title}

{post.date}

) } return ( <> { return cat }), }, images: [ { url: `https://supabase.com${basePath}/images/blog/${ props.blog.image ? props.blog.image : props.blog.thumb }`, }, ], }} />
{/* Title and description */}

Alternative

{props.blog.title}

{props.blog.date}

•

{generateReadingTime(props.blog.source)}

{author.map((author: any) => { return (
{author.author_image_url && (
author avatar
)}
{author.author} {author.position}
) })}
{/* Content */}
Share this article
{props.prevPost && }
{props.nextPost && ( )}
) } export default LayoutComparison