<div class="flex items-center">
  <%= link_to(domain_user_path(user), class: "flex grow items-center gap-2") do %>
    <%= image_tag domain_user_avatar_img_src_path(user.avatar, thumb: "64-avatar"), class: "h-6 w-6 rounded-md" %>
    <span class="blue-link font-medium text-lg"><%= user.name_for_view %></span>
  <% end %>
  <% if !defined?(with_post_count) || with_post_count %>
    <span class="ml-2 text-slate-500">
      <%= pluralize(number_with_delimiter(user.posts.count, delimiter: ","), "post") %>
    </span>
  <% end %>
</div>
