mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 18:36:21 +00:00
34 lines
874 B
TypeScript
34 lines
874 B
TypeScript
import React from 'react';
|
|
import Link from 'next/link';
|
|
import { Card, CardBody, CardHeader } from '@nextui-org/card';
|
|
import { Divider } from '@nextui-org/react';
|
|
|
|
type Props = {
|
|
post: JSON
|
|
}
|
|
|
|
function BlogPostCard({ post }: Props) {
|
|
const name = (post as any)['name'];
|
|
const { title, desc } = (post as any)['meta'] as { title: string, desc: string };
|
|
return (
|
|
|
|
<div>
|
|
{/*todo: to be update*/ }
|
|
{/*<Link href={ `/blog/${ name }` }>*/}
|
|
<Card>
|
|
<CardHeader>
|
|
<p className={ 'font-bold' }>{ title }</p>
|
|
</CardHeader>
|
|
<Divider />
|
|
<CardBody>
|
|
{ desc }
|
|
</CardBody>
|
|
</Card>
|
|
{/*</Link>*/}
|
|
</div>
|
|
);
|
|
|
|
}
|
|
|
|
export default BlogPostCard;
|