<%# locals: (entry:) %>

<%= tag.header class: "mb-4 space-y-1", id: dom_id(entry, :header) do %>
  <span class="text-secondary text-sm">
    <%= entry.name %>
  </span>

  <div class="flex items-center gap-4">
    <h3 class="font-medium">
      <span class="text-2xl text-primary privacy-sensitive">
        <%= format_money entry.amount_money %>
      </span>

      <span class="text-lg text-secondary">
        <%= entry.currency %>
      </span>
    </h3>
  </div>

  <span class="text-sm text-secondary">
    <%= I18n.l(entry.date, format: :long) %>
  </span>
<% end %>
