<% provider = AuthProvider.from_strategy_name(@attached_object.provider) %>
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>

<% if provider.name == AuthProvider::SimpleAuthProvider.new.name %>
  <p><%= t('.body.account_completed') %>
    <%= "#{@attached_object&.profile&.full_name || t('api.notifications.deleted_user')}" %> &lt;<%= @attached_object.email%>&gt;.</p>
<% else %>
  <p><%= t('.body.imported_account_completed', PROVIDER: provider.name) %>
      <%= "#{@attached_object&.profile&.full_name || t('api.notifications.deleted_user')}" %> &lt;<%= @attached_object.email%>&gt;.</p>
<% end %>

<% if @attached_object.uid %>
  <p><%= t('.body.provider_id', UID: @attached_object.uid) %></p>
<% end %>