<%= render Avo::TurboFrameWrapperComponent.new(params[:turbo_frame]) do %> <% classes = 'absolute inset-auto left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2' label = t 'avo.failed_to_load' src_url = params[:src].present? && !params[:src].starts_with?('http://') ? params.permit(:src).fetch(:src) : nil %>
<%= svg "avo/failed_to_load", class: "#{classes} h-52 text-gray-400" %>
<%= label %> <%= params[:turbo_frame].to_s.humanize.downcase if params[:turbo_frame].present? %> frame
<% if Rails.env.development? && src_url %>
This is not an issue with Avo. Use <%= link_to 'this page', src_url, target: :_blank %> to see why this frame failed to load.
<% end %>
<% end %>