This commit is contained in:
giancarlo
2024-03-24 02:23:22 +08:00
parent 648d77b430
commit bce3479368
589 changed files with 37067 additions and 9596 deletions

View File

@@ -0,0 +1,24 @@
import React from 'react';
import type { Post as PostType } from 'contentlayer/generated';
import { Mdx } from '@kit/ui/mdx';
import PostHeader from './post-header';
export const Post: React.FC<{
post: PostType;
content: string;
}> = ({ post, content }) => {
return (
<div className={'mx-auto my-8 max-w-2xl'}>
<PostHeader post={post} />
<article className={'mx-auto flex justify-center'}>
<Mdx code={content} />
</article>
</div>
);
};
export default Post;