<% path = blob_path(
  HexUtil.bin2hex(log_entry.response_sha256),
  format: extension_for_content_type(log_entry.content_type),
) %>
<section class="flex grow justify-center overflow-clip">
  <% if is_renderable_image_type?(log_entry.content_type) %>
    <%= render partial: "log_entries/renderers/image", locals: { log_entry:, path: } %>
  <% elsif is_renderable_audio_type?(log_entry.content_type) %>
    <%= render partial: "log_entries/renderers/audio", locals: { log_entry:, path: } %>
  <% elsif is_renderable_video_type?(log_entry.content_type) %>
    <%= render partial: "log_entries/renderers/video", locals: { log_entry:, path: } %>
  <% elsif is_flash_content_type?(log_entry.content_type) %>
    <%= render partial: "log_entries/renderers/embed", locals: { log_entry:, path: } %>
  <% elsif is_json_content_type?(log_entry.content_type) %>
    <%= render partial: "log_entries/renderers/json", locals: { log_entry:, path: } %>
  <% elsif is_rich_text_content_type?(log_entry.content_type) %>
    <%= render partial: "log_entries/renderers/rich_text", locals: { log_entry:, path: } %>
  <% else %>
    <%= render partial: "log_entries/renderers/iframe_fallback", locals: { log_entry:, path: } %>
  <% end %>
</section>
