%# locals: (provider_key:, title:) %>
<% meta = provider_key.present? ? Provider::Metadata.for(provider_key) : nil %>
<% maturity_label_key = meta && Settings::ProviderCard::MATURITY_LABELS[meta[:maturity]] %>
<% maturity_label = maturity_label_key ? t(maturity_label_key) : nil %>
<% if meta && meta[:logo_bg].present? %>
<%= meta[:logo_text] %>
<% end %>
<%= title %>
<% if maturity_label %>
<%= maturity_label %>
<% end %>
<%= render DS::Button.new(
variant: "icon",
class: "ml-auto hidden lg:flex",
icon: "x",
title: t("common.close"),
aria_label: t("common.close"),
data: { action: "DS--dialog#close" }
) %>