import React from 'react'; import { Card, CardBody } from '@nextui-org/card'; import Headers from '@/app/blog/post/[id]/Headers'; import Footer from '@/app/blog/post/[id]/Footer'; import { fetchNocturneApi } from '@/app/blog/api'; import MarkdownRenderer from '@/app/public/MarkdownRenderer'; type Props = { id: string } async function PostCard(props: Props) { try { const res = await fetchNocturneApi(`/get_post/${ props.id }`); const ret: any = await res.json(); return (
{/* card headers */ } {/* card body */ }
{ ret['content'] }
{/* card footer */ }
); } catch (e: any) { return
Fatal: { e.toString() }
; } } export default PostCard;