import BLOG from '@/blog.config' import { useGlobal } from '@/lib/global' import { faAngleRight } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import Link from 'next/link' import React from 'react' import { Code, Collection, CollectionRow, Equation, NotionRenderer } from 'react-notion-x' import CONFIG_MEDIUM from '../config_medium' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_MEDIUM.POST_LIST_PREVIEW && post.blockMap const { locale } = useGlobal() return (
{post.title}
{post.date.start_date}
{(!showPreview || showSummary) &&

{post.summary}

} {showPreview &&
}

) } const mapPageUrl = id => { return 'https://www.notion.so/' + id.replace(/-/g, '') } export default BlogPostCard