<%= render 'shared/turbo_modal', title: t('webhook_security') do %>
<%= link_to t('secret'), webhook_secret_path(@webhook_url), class: 'block bg-base-200 md:min-w-[112px] text-sm font-semibold whitespace-nowrap py-1.5 px-4 rounded-l-3xl', data: { turbo_frame: 'modal' } %> <%= link_to t('hmac'), webhook_hmac_path(@webhook_url), class: 'block bg-base-300 md:min-w-[112px] text-sm font-semibold whitespace-nowrap py-1.5 px-4 rounded-r-3xl', data: { turbo_frame: 'modal' } %>
<% token = @webhook_url.hmac_secret %> <% obscured = "#{token[0, 10]}#{'*' * [token.length - 10, 0].max}" %>
<%= render 'shared/clipboard_copy', icon: 'copy', text: token, class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: t('copy'), copied_title: t('copied') %>

<%= t('hmac_signature_header_hint_html', header: 'X-Wabosign-Signature'.html_safe) %>

<% end %>