<%= render Components::PublicActivity::Snippet.new(activity) do %>
  <%
    verification_text = if defined?(current_user) && current_user.is_a?(Backend::User)
      link_to "verification", backend_verification_path(activity.trackable)
    else
      "verification"
    end

    is_current = defined?(current_identity) && activity.trackable&.identity == current_identity
  %>
  rejected <%= is_current ? "your" : "#{activity.trackable.identity.first_name} #{activity.trackable.identity.last_name}'s" %> <%= verification_text %><%
  unless activity.parameters[:reason].nil?
                                                                                                                                                       %> for <%= Verification::DocumentVerification::REJECTION_REASON_NAMES[activity.parameters[:reason]].downcase %><%
  end
                                                                                                                                                                                                                                                                      %>.
<% end %>
