import { Badge } from '@/components/ui/badge'; import type { PostItem } from '../api/types'; import { formatTime } from '../utils/content'; interface Props { post: PostItem; onClick: () => void; } export default function PostListItem({ post, onClick }: Props) { const initial = post.user?.nickname?.[0] || '?'; return (