<% if signed_in? && current_user != true_user && current_account.testing? %>
  <div class="hidden md:flex alert py-1 text-sm font-medium gap-x-2  whitespace-nowrap">
    <a href="<%= testing_api_settings_path %>" data-turbo-frame="modal" class="link font-semibold flex">
      <%= svg_icon('code_circle', class: 'w-5 h-5 mr-1') %>
      <span><%= t('test_mode') %></span>
    </a>
    <span>
      |
    </span>
    <%= button_to testing_account_path, method: :delete, class: 'inline flex' do %>
      <% title = capture do %>
        <span class="link"><%= t('exit') %></span>
        <span>&times;</span>
      <% end %>
      <%= button_title(title:, disabled_with: t('leave')) %>
    <% end %>
  </div>
<% end %>
