<%= 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 %>
    cancelled invitation for <strong><%= activity.parameters[:cancelled_email] || activity.parameters["cancelled_email"] %></strong>.
  <% else %>
    cancelled an invitation.
  <% end %>
<% end %>
