import React from 'react'; import { Card, CardBody, CardFooter } from '@nextui-org/card'; import { Chip } from '@nextui-org/react'; import Image from 'next/image'; import Link from 'next/link'; import { MdCalendarMonth, MdNorthEast } from 'react-icons/md'; type Props = { post: JSON } function BlogPostCard({ post }: Props) { let title = (post as any)['title']; let sub_title = (post as any)['sub_title']; // let summary = (post as any)['summary']; let category = (post as any)['category']; let tags = (post as any)['tags']; // let last_update = new Date((post as any)['last_update']); let first_update = new Date((post as any)['first_update']); let post_id = (post as any)['post_id']; let header_img = (post as any)['header_img']; return (
{ header_img !== '' &&
{
}
{ category }

{ title }

{ sub_title }

{/* */ }
    { tags.map((tag: string, key: any) => (
  • { tag }
  • )) }

{ first_update.toLocaleString('default', { month: `long`, day: `numeric`, year: `numeric` }) }

); } export default BlogPostCard;