import React from 'react'; import Image from 'next/image'; import { Chip } from '@nextui-org/react'; import { MdCalendarMonth } from 'react-icons/md'; import TagChip from '@/app/(pages)/blog/post/[id]/TagChip'; type Props = { title: string; subtitle: string; category: string; tags: string[]; first_update: string; header_img: string | undefined; } const Headers = (post: Props) => { return ( <> { post.header_img &&
{ {
}
{ post.category }

{ post.title }

{ post.subtitle }

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

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

); }; export default Headers;