<%= render Components::PublicActivity::Snippet.new(activity, owner_component: Components::IdentityMention.new(activity.owner)) do %>
  <% if begin; activity.trackable && policy(activity.trackable).manage_collaborators?; rescue; false; end %>
    invited <strong><%= activity.parameters[:invited_email] || activity.parameters["invited_email"] %></strong> to collaborate.
  <% else %>
    invited a new collaborator.
  <% end %>
<% end %>
