import React from 'react'; import MinifyPostCard from '@/app/blog/post/[id]/MinifyPostCard'; import Link from 'next/link'; import { FaCreativeCommons } from 'react-icons/fa6'; type Props = { post: any } const Footer = (props: Props) => { const { post } = props; const header_img = post['header_img']; const adjacent_posts = post['adj']; const prev_post = adjacent_posts['prev']; const next_post = adjacent_posts['next']; const link = post['meta']['link'] ?? `https://lumither.com/blog/post/${ post['meta']['id'] }`; const author = post['meta']['author'] ?? 'Tao'; const author_link = post['meta']['author_link'] ?? '/about'; const post_date = new Date(post['first_update']); const update_date = new Date(post['last_update']); const cc = post['meta']['cc'] ?? 'by-nc-sa'; return (

{ post['meta']['title'] }

{ link }

Author

{ author }

Posted on

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

Updated on

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

Published under

{ `CC ${ cc.toUpperCase() } 4.0` }

{ next_post && } { prev_post && }
); }; export default Footer;