- {communityPosts.map((post) => (
-
-
- {post.thumbnailUrl && (
-

+ 커뮤니티 인기글
+
+
+ {communityPosts.map((post, index) => {
+ const imageUrl = post.thumbnailUrl || COMMUNITY_FALLBACK_IMAGES[index % COMMUNITY_FALLBACK_IMAGES.length];
+ return (
+
+
+
- )}
-
-
-
{post.placeName ?? post.content}
-
- {post.categories[0] ?? "여행후기"} · 댓글 {post.commentCount} · {post.createdAgo}
-
-
-
- ))}
+
+
+
+ {post.author.nickname}
+
+
+ {post.categories[0] ?? "여행후기"} · 댓글 {post.commentCount}
+
+
+
+ );
+ })}
)}
diff --git a/src/components/layout/HomeHeader.tsx b/src/components/layout/HomeHeader.tsx
index 21468b3..be90380 100644
--- a/src/components/layout/HomeHeader.tsx
+++ b/src/components/layout/HomeHeader.tsx
@@ -12,7 +12,13 @@ import { useNotificationStream } from "@/lib/notifications/use-notification-stre
const NOTIFICATION_COUNT_REFRESH_EVENT = "notifications:count-refresh";
const NOTIFICATION_COUNT_POLLING_MS = 60_000;
-export default function HomeHeader({ profileImageUrl }: { profileImageUrl?: string | null }) {
+export default function HomeHeader({
+ profileImageUrl,
+ profileLabel = "누비",
+}: {
+ profileImageUrl?: string | null;
+ profileLabel?: string;
+}) {
const { status } = useSession();
const profileImage = profileImageUrl;
const [unreadCount, setUnreadCount] = useState(0);
@@ -52,14 +58,14 @@ export default function HomeHeader({ profileImageUrl }: { profileImageUrl?: stri
}, [refreshUnreadCount, status]);
return (
-