<% if (plugins.reactions) { %>

Overall users reactions from last <%= plugins.reactions?.comments %> comments

<% if (plugins.reactions.error) { %>
<%= plugins.reactions.error.message %>
<% } else { %>
<% for (const [reaction, icon] of Object.entries({HEART:"❤️", THUMBS_UP:"👍", THUMBS_DOWN:"👎", LAUGH:"😄", CONFUSED:"😕", EYES:"👀", ROCKET:"🚀", HOORAY:"🎉"})) { const {score = 0, value:count = 0} = plugins.reactions.list[reaction] ?? {} %>
<% if (score > 0) { %> <% if (true) { %> <%= icon %> <% } else { %> <%= icon %> <% } %> <% } else { %> <% if (true) { %> <%= icon %> <% } else { %> <%= icon %> <% } %> <% } %> <% if (plugins.reactions.details === "percentage") { %> <%= Math.round(score*100) %>% <% } else if (plugins.reactions.details === "count") { %> <%= count %> <% } %>
<% } %>
<% } %>
<% } %>