import { PlatformKind } from '@/utils'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { PlatformIcon } from '@/components/icons'; import { format } from 'date-fns'; export default function RecentPosts({ posts, }: { posts: { platform: PlatformKind; profileUrl: string; name: string; date: Date; content: string; }[]; }) { return ( Recent posts {posts.map((post, i) => (
PFP

{post.name}

{format(post.date, 'MMM dd h:mm aa')}

{post.content}

))}
); }