import BLOG from '@/blog.config' import { faAngleRight, faFolder } 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 TagItemMini from './TagItemMini' import CONFIG_MEDIUM from '../config_medium' import { useGlobal } from '@/lib/global' 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 &&
} {/*
{post.category}
{post.tagItems.map(tag => ())}
*/}

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