import React from 'react'; import Image from 'next/image'; import { Chip } from '@nextui-org/react'; import { MdCalendarMonth } from 'react-icons/md'; type Props = { post: any }; const Headers = (props: Props) => { let post = props.post; 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 Headers;