import { FC } from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { format } from 'date-fns'; import { BlogPost as BlogPostType } from '@/types/blog'; interface BlogPostProps { post: BlogPostType; } const BlogPost: FC = ({ post }) => { return ( {post.author[0]}
{post.title}

{format(new Date(post.date), 'MMMM d, yyyy')}

{post.content.map((paragraph, index) => (

{paragraph}

))}
); }; export default BlogPost;