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'; interface Post { id: string, identifier: string, title: string, subtitle: string, tags: string[] category: string, date_created: Date, date_updated: Date | null, header_img: string | null } type Props = { post: Post } function BlogPostCard({ post }: Props) { return (
{ post.header_img &&
{ {
}
{ post.category }

{ post.title }

{ post.subtitle }

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

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

); } export default BlogPostCard;