<%# locals: (error_message:, return_path: nil, heading: nil, issue_keys: nil, action_label: nil) %> <% heading ||= t("sophtron_items.api_error.unable_to_connect") %> <% issue_keys ||= %w[incorrect_user_id invalid_access_key expired_credentials network_issue service_down] %> <% action_path = return_path.presence || settings_providers_path %> <% action_label ||= t("sophtron_items.api_error.check_provider_settings") %> <%= turbo_frame_tag "modal" do %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t("sophtron_items.api_error.title")) %> <% dialog.with_body do %>
<%= icon("alert-circle", color: "destructive", size: "sm", class: "mt-0.5") %>

<%= heading %>

<%= h(error_message) %>

<%= t("sophtron_items.api_error.common_issues_title") %>

<%= render DS::Link.new( text: action_label, href: action_path, variant: :primary, data: { turbo: false } ) %>
<% end %> <% end %> <% end %>