import { ClipboardList, Heart, MessageCircle, PenSquare, Pin } from "lucide-react" import Link from "next/link" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card" import { mockPosts } from "@/lib/mock-data" const roleLabels: Record = { consumer: "消费者", player: "打手", owner: "店主", } export default function CommunityPage() { return (

社区

{mockPosts.map((post) => (
{post.author.nickname[0]}
{post.author.nickname} {roleLabels[post.authorRole]} {post.pinned && }
{new Date(post.createdAt).toLocaleDateString("zh-CN")}

{post.title}

{post.content}

{post.tags.length > 0 && (
{post.tags.map((tag) => ( {tag} ))}
)} {post.linkedOrderId && (
关联订单秀单
)}
{post.likeCount} {post.commentCount}
))}
) }