import React from 'react'; import { Card, CardBody, CardFooter } from '@nextui-org/card'; import { Chip, Image } from '@nextui-org/react'; 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 (
{ title }
{ sub_title }
{ summary }
{ first_update.toLocaleString('default', { month: `long`, day: `numeric`, year: `numeric` }) }