<%= content_tag :div, id: node_id, data: { decidim_comments: comments_data } do %>

<% if single_comment? %> <%= t("decidim.components.comments.comment_details_title") %> <% else %> <%= icon "chat-1-line", class: "fill-tertiary w-6 h-6 inline-block align-middle" %> <%= t("decidim.components.comments.title", count: comments_count) %> <% end %>

<%= render :order_control %>
<%= single_comment_warning %> <%= blocked_comments_warning %>
<%= comments_loading %> <% comments.each do |comment| %> <%= cell("decidim/comments/comment_thread", comment, order:) %> <% end %>
<%= add_comment %> <%= user_comments_blocked_warning %>
<%= cell("decidim/announcement", t("decidim.components.comments.loading"), callout_class: "primary loading-comments hidden") %>
<% end %>