import { Badge, Space, Typography } from '@supabase/ui' import authors from 'lib/authors.json' import Link from 'next/link' import React from 'react' import PostTypes from '~/types/post' interface Props { blog: PostTypes } const BlogListItem = ({ blog }: Props) => { // @ts-ignore const author = blog.author ? authors[blog.author] : authors['supabase'] return (
{blog.date} • {blog.readingTime} {blog.title} {blog.tags && blog.tags.map((tag: string) => ( {tag} ))}
{author && (
{author.author_image_url && ( )} {author.author} {author.position}
)} {/* {blog.content.substring(0, 210) + '...'} Read more */}
) } export default BlogListItem