<%= render 'shared/turbo_drawer', title: @webhook_event.event_type, close_after_submit: false do %>
<%= render 'drawer_events', webhook_url: @webhook_url, webhook_event: @webhook_event %> <% if @data %>
<% response = JSON.pretty_generate({ event_type: @webhook_event.event_type, timestamp: @webhook_event.created_at.as_json, data: @data }) %> <%= render 'shared/clipboard_copy', icon: 'copy', text: response, class: 'btn btn-ghost text-white', icon_class: 'w-6 h-6 text-white', copy_title: t('copy'), copied_title: t('copied') %>
<%== HighlightCode.call(response, 'JSON', theme: 'base16.dark') %>
<% end %>
<% end %>