+ {/* Header */}
+
+
+
+
+ Bình luận
+
+
{locationName}
+
+
+
+
+ {/* Comment List */}
+
+ {isLoading ? (
+
+ ) : comments.length === 0 ? (
+
Chưa có bình luận nào.
+ ) : (
+ comments.map((c) => (
+
+
+
+
+
+
+
+
{c.userName}
+ {(userRole === 'OWNER' || userRole === 'MANAGER' || c.userId === currentUserId) && (
+
+ )}
+
+
{c.content}
+
+
+ {new Date(c.createdAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
+
+
+
+ ))
+ )}
+
+
+ {/* Input Area */}
+
+
+ setNewComment(e.target.value)}
+ onKeyDown={(e) => e.key === 'Enter' && handleSend()}
+ placeholder={isPublicView ? 'Đăng nhập để bình luận...' : 'Viết bình luận...'}
+ className="flex-1 bg-gray-50 border border-gray-200 rounded-2xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white transition-all"
+ />
+
+
+
+